changeset 711:f107ab150809

Generate a standalone XML file.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 31 Mar 2009 12:25:03 -0700
parents 47fbf3765997
children c8680784cdbb
files .hgignore en/Makefile
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue Mar 31 12:21:50 2009 -0700
+++ b/.hgignore	Tue Mar 31 12:25:03 2009 -0700
@@ -16,6 +16,7 @@
 .run
 .validated-00book.xml
 en/all-ids.dat
+en/complete.xml
 web/hgbook/.database.sqlite3
 web/hgbook/secrets.py
 web/index-read.html.in
--- a/en/Makefile	Tue Mar 31 12:21:50 2009 -0700
+++ b/en/Makefile	Tue Mar 31 12:25:03 2009 -0700
@@ -110,7 +110,7 @@
 hg-version = $(shell hg version -q | \
 		     sed 's,.*(version \(unknown\|[a-f0-9+]*\)),\1,')
 
-all: web
+all: web complete.xml
 
 ../xsl/system-xsl: $(system-xsl-dir)
 	ln -s $< $@
@@ -134,6 +134,9 @@
 	cp ../xsl/system-xsl/images/*.png $(obj-websup)/figs
 	cp -f ../web/icons/*.png $(obj-websup)/figs
 
+complete.xml: .validated-00book.xml
+	$(xsltproc) $(xsltproc-opts) -o $@ ../xsl/dtd-profile.xsl 00book.xml
+
 all-ids.dat: ../xsl/all-ids.xsl $(xml-src-files)
 	$(xsltproc) $(xsltproc-opts) -o $@ ../xsl/all-ids.xsl 00book.xml