Skip to content

Commit 077a713

Browse files
committed
make-release.sh: properly disable SGR formatting
The grotty -c option disables the SGR formatting, but it enables overstrike (^H) formatting instead. The -buo options disable the use of overstriking for bold, underline, and overstriking per se, respectively. Altogether these make grotty produce plain text. I'm not sure why I've added -bu previously, but I suspect it's because I was testing on Debian, which enables -c by default. The groff in the upcoming Debian 13 will no longer do that btw.
1 parent 97dc32f commit 077a713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mkdir $releasepath-pdbs
1414

1515
for i in thanm thanm.old thecl thdat thmsg thstd; do
1616
echo $i
17-
echo .ds doc-default-operating-system thtk | groff -mdoc -Tutf8 -P -bu - $i/$i.1 | perl -pe 's/\e\[?.*?[\@-~]//g' | unix2dos > $releasepath/README.$i.txt
17+
echo .ds doc-default-operating-system thtk | groff -mdoc -Tutf8 -P-buoc - $i/$i.1 | unix2dos > $releasepath/README.$i.txt
1818
cp build/$i/RelWithDebInfo/$i.exe $releasepath/
1919
cp build/$i/RelWithDebInfo/$i.pdb $releasepath-pdbs/
2020
done

0 commit comments

Comments
 (0)