[PATCH 1 of 3] doc: escape .hg at bol in manpages with make (#1072)
Christian Ebert
blacktrash at gmx.net
Sun Apr 6 06:13:37 CDT 2008
# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1207478864 -7200
# Node ID 6281662897df8222a82ce874a49a51ff91c7b786
# Parent 938319418d8c33aa0abac7c7ef3d271f4b72af93
doc: escape .hg at bol in manpages with make (#1072)
This works around a bug in old docbook stylesheets.
Remove .*.swp example from hgignore.5.txt.
Diagnosis and workaround thanks to Alexis S. L. Carvalho.
diff --git a/doc/Makefile b/doc/Makefile
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -18,7 +18,9 @@
python gendoc.py > $@
%: %.xml
- xmlto man $*.xml
+ xmlto man $*.xml ; \
+ sed -e 's/^\.hg/\\\&.hg/' $* > $*~ ; \
+ mv $*~ $*
%.xml: %.txt
asciidoc -d manpage -b docbook $*.txt
diff --git a/doc/hgignore.5.txt b/doc/hgignore.5.txt
--- a/doc/hgignore.5.txt
+++ b/doc/hgignore.5.txt
@@ -68,7 +68,6 @@
*.elc
*.pyc
*~
- .*.swp
# switch to regexp syntax.
syntax: regexp
More information about the Mercurial-devel
mailing list