equal
deleted
inserted
replaced
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 |