summaryrefslogtreecommitdiff
path: root/build-aux/dist-docs
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2015-11-11 08:58:51 -0800
committerBen Pfaff <blp@ovn.org>2015-11-11 09:20:07 -0800
commit0e7850eb8d6d22feaef51054e703e017658e54ee (patch)
tree8fea133ce81438dd61bf51a108833a115517655d /build-aux/dist-docs
parentef6d1b112383a9820e03b8245f90cbc32823927e (diff)
downloadopenvswitch-0e7850eb8d6d22feaef51054e703e017658e54ee.tar.gz
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 <rbryant@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Russell Bryant <rbryant@redhat.com>
Diffstat (limited to 'build-aux/dist-docs')
-rwxr-xr-xbuild-aux/dist-docs4
1 files 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 '<html><head><meta charset="UTF-8"></head><body><pre>'
- man -l -Tutf8 $manpage | sed '
+ GROFF_NO_SGR=1 man -l -Tutf8 $manpage | sed '
s/&/&amp;/g
s/</&lt;/g
s/>/&gt;/g