Mercurial > hg
diff doc/Makefile @ 9418:a82db54bc3be
doc: use our own rst2man.py script (issue1746)
The rst2man tool has not yet been part of an official Docutils
release, and it is not present in most distributions. This poses a
problem for people who want to install Mercurial from source, or who
want to create a Mercurial package for such a distribution -- how to
specify the build-dependencies?
By including the rst2man.py script with Mercurial people only need a
normal Docutils installation in order to install Mercurial.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 03 Sep 2009 21:36:44 +0200 |
parents | 7345fa5e572e |
children | ec26d6986d85 |
line wrap: on
line diff
--- a/doc/Makefile Thu Sep 03 21:07:06 2009 +0200 +++ b/doc/Makefile Thu Sep 03 21:36:44 2009 +0200 @@ -6,7 +6,6 @@ INSTALL=install -c -m 644 PYTHON=python RST2HTML=$(shell which rst2html 2> /dev/null || which rst2html.py) -RST2MAN=$(shell which rst2man 2> /dev/null || which rst2man.py) all: man html @@ -21,13 +20,7 @@ ${PYTHON} gendoc.py > $@ %: %.txt common.txt - $(RST2MAN) $*.txt > $*.tmp -# add newline after all literal blocks and fix backslash escape - sed \ - -e 's/^\.fi$$/.fi\n/' \ - -e 's/\\fB\\\\fP/\\fB\\e\\fP/' \ - $*.tmp > $* - rm $*.tmp + $(PYTHON) rst2man.py $*.txt > $* %.html: %.txt common.txt $(RST2HTML) $*.txt > $*.html