# HG changeset patch # User Christian Ebert # Date 2008-04-07 07:02:04 # Node ID 960bc707ea10fac585fd62343be6bef6abc3a08b # Parent 31abcae33b4f22cea9d0db5fdfa5f3f11370dd06 doc: escape .hg at bol in manpages with make (issue1072) 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 @@ hg.1.gendoc.txt: ../mercurial/commands.p 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 @@ Here is an example ignore file. *.elc *.pyc *~ - .*.swp # switch to regexp syntax. syntax: regexp