mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
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.
This commit is contained in:
parent
a37424ba87
commit
1f8cac4ff1
10
doc/Makefile
10
doc/Makefile
@ -21,11 +21,13 @@ hg.1.gendoc.txt: gendoc.py ../mercurial/commands.py ../mercurial/help.py
|
||||
${PYTHON} gendoc.py > $@
|
||||
|
||||
%: %.txt common.txt
|
||||
$(RST2MAN) $*.txt > $*.tmp
|
||||
# add newline after all literal blocks and fix backslash escape
|
||||
$(RST2MAN) $*.txt \
|
||||
| sed -e 's/^\.fi$$/.fi\n/' \
|
||||
| sed -e 's/\\fB\\\\fP/\\fB\\e\\fP/' \
|
||||
> $*
|
||||
sed \
|
||||
-e 's/^\.fi$$/.fi\n/' \
|
||||
-e 's/\\fB\\\\fP/\\fB\\e\\fP/' \
|
||||
$*.tmp > $*
|
||||
rm $*.tmp
|
||||
|
||||
%.html: %.txt common.txt
|
||||
$(RST2HTML) $*.txt > $*.html
|
||||
|
Loading…
Reference in New Issue
Block a user