From 0e7850eb8d6d22feaef51054e703e017658e54ee Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 11 Nov 2015 08:58:51 -0800 Subject: [PATCH 1/1] dist-docs: Fix text and HTML manpage generation with some groff versions. Some versions of groff use termcap sequences for bold, italic, etc. by default. The dist-docs script doesn't cope with those; it expects sequences based on backspacing and overprinting. This commit fixes the problem by setting an environment variable GROFF_NO_SGR that forces groff to use backspacing. Found on Fedora. Reported-by: Russell Bryant Signed-off-by: Ben Pfaff Acked-by: Russell Bryant --- build-aux/dist-docs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/dist-docs b/build-aux/dist-docs index 5857c1cf5..3792fa59c 100755 --- a/build-aux/dist-docs +++ b/build-aux/dist-docs @@ -103,9 +103,9 @@ EOF (cd $distdir for manpage in $manpages; do man -l -Tps $manpage | ps2pdf - > $manpage.pdf - man -l -Tutf8 $manpage | sed 's/.//g' > $manpage.txt + GROFF_NO_SGR=1 man -l -Tutf8 $manpage | sed 's/.//g' > $manpage.txt (echo '
'
-      man -l -Tutf8 $manpage | sed '
+      GROFF_NO_SGR=1 man -l -Tutf8 $manpage | sed '
 s/&/&/g
 s//>/g
-- 
2.20.1