Mercurial > hg
comparison doc/Makefile @ 9400:a6747ba27d22
doc/Makefile: detect rst2man errors
Make couldn't detect rst2man errors when it wasn't the last command, so empty
man page files would be installed.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 20 Aug 2009 23:35:37 +0200 |
parents | 2399362b3bb0 |
children | 2a5144687727 |
comparison
equal
deleted
inserted
replaced
9399:f60f6f41978e | 9400:a6747ba27d22 |
---|---|
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 common.txt | 23 %: %.txt common.txt |
24 $(RST2MAN) $*.txt > $*.tmp | |
24 # add newline after all literal blocks and fix backslash escape | 25 # add newline after all literal blocks and fix backslash escape |
25 $(RST2MAN) $*.txt \ | 26 sed \ |
26 | sed -e 's/^\.fi$$/.fi\n/' \ | 27 -e 's/^\.fi$$/.fi\n/' \ |
27 | sed -e 's/\\fB\\\\fP/\\fB\\e\\fP/' \ | 28 -e 's/\\fB\\\\fP/\\fB\\e\\fP/' \ |
28 > $* | 29 $*.tmp > $* |
30 rm $*.tmp | |
29 | 31 |
30 %.html: %.txt common.txt | 32 %.html: %.txt common.txt |
31 $(RST2HTML) $*.txt > $*.html | 33 $(RST2HTML) $*.txt > $*.html |
32 | 34 |
33 MANIFEST: man html | 35 MANIFEST: man html |