changeset 6486:960bc707ea10

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.
author Christian Ebert <blacktrash@gmx.net>
date Mon, 07 Apr 2008 09:02:04 +0200
parents 31abcae33b4f
children 9e3bddb5fae2
files doc/Makefile doc/hgignore.5.txt
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/Makefile	Sat Apr 05 18:15:04 2008 +0200
+++ b/doc/Makefile	Mon Apr 07 09:02:04 2008 +0200
@@ -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
--- a/doc/hgignore.5.txt	Sat Apr 05 18:15:04 2008 +0200
+++ b/doc/hgignore.5.txt	Mon Apr 07 09:02:04 2008 +0200
@@ -68,7 +68,6 @@
   *.elc
   *.pyc
   *~
-  .*.swp
 
   # switch to regexp syntax.
   syntax: regexp