Mercurial > hg
comparison doc/Makefile @ 9161:e8b653a4b8da
doc: fixup font markup in man pages
This exposed a bug in rst2man where it neglects to escape a literal
backslash. A patch has been applied upstream, but not yet packaged in,
say, Debian unstable. A forward-compatible work-around has therefore
been put in place.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 16 Jul 2009 23:25:26 +0200 |
parents | 62b3df842de9 |
children | 2399362b3bb0 |
comparison
equal
deleted
inserted
replaced
9160:81028d2db635 | 9161:e8b653a4b8da |
---|---|
19 | 19 |
20 hg.1.gendoc.txt: gendoc.py ../mercurial/commands.py ../mercurial/help.py | 20 hg.1.gendoc.txt: gendoc.py ../mercurial/commands.py ../mercurial/help.py |
21 ${PYTHON} gendoc.py > $@ | 21 ${PYTHON} gendoc.py > $@ |
22 | 22 |
23 %: %.txt | 23 %: %.txt |
24 # add newline after all literal blocks | 24 # add newline after all literal blocks and fix backslash escape |
25 $(RST2MAN) $*.txt | sed -e 's/^\.fi$$/.fi\n/' > $* | 25 $(RST2MAN) $*.txt \ |
26 | sed -e 's/^\.fi$$/.fi\n/' \ | |
27 | sed -e 's/\\fB\\\\fP/\\fB\\e\\fP/' \ | |
28 > $* | |
26 | 29 |
27 %.html: %.txt | 30 %.html: %.txt |
28 $(RST2HTML) $*.txt > $*.html | 31 $(RST2HTML) $*.txt > $*.html |
29 | 32 |
30 MANIFEST: man html | 33 MANIFEST: man html |