doc/Makefile
changeset 9400 a6747ba27d22
parent 9162 2399362b3bb0
child 9401 2a5144687727
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