[svnbook commit] r1209 - trunk/src/en

maxb svnbook-dev at red-bean.com
Thu Apr 7 10:36:34 CDT 2005


Author: maxb
Date: Thu Apr  7 10:36:32 2005
New Revision: 1209

Modified:
   trunk/src/en/Makefile
Log:
Add an experimental new make target "make valid", as a shortcut way to run
XML validation on the book. It will need further work to be cross-platform.

* en/Makefile: Add "valid" target, runs XML validation.


Modified: trunk/src/en/Makefile
==============================================================================
--- trunk/src/en/Makefile	(original)
+++ trunk/src/en/Makefile	Thu Apr  7 10:36:32 2005
@@ -135,3 +135,11 @@
 	rm -f $(BOOK_HTML_TARGET) $(BOOK_FO_TARGET)
 	rm -rf $(BOOK_HTML_CHUNK_DIR)
 	rm -f $(BOOK_PDF_TARGET) $(BOOK_PS_TARGET) 
+
+# The path to xml.soc is going to vary wildly from system to system.
+# I suppose we need another find-foo script - unless anyone has a better idea?
+valid:
+	SP_CHARSET_FIXED=YES SP_ENCODING=XML \
+	SGML_CATALOG_FILES="/usr/share/OpenSP/xml.soc" \
+	onsgmls -wxml -ges book/book.xml
+



More information about the svnbook-dev mailing list