[32902] trunk/doc-new/Makefile
simon at macports.org
simon at macports.org
Mon Jan 14 13:26:35 PST 2008
Revision: 32902
http://trac.macosforge.org/projects/macports/changeset/32902
Author: simon at macports.org
Date: 2008-01-14 13:26:33 -0800 (Mon, 14 Jan 2008)
Log Message:
-----------
doc-new: Added validate target to Makefile which checks the guide with xmllint.
Modified Paths:
--------------
trunk/doc-new/Makefile
Modified: trunk/doc-new/Makefile
===================================================================
--- trunk/doc-new/Makefile 2008-01-14 21:24:47 UTC (rev 32901)
+++ trunk/doc-new/Makefile 2008-01-14 21:26:33 UTC (rev 32902)
@@ -17,6 +17,7 @@
RM = /bin/rm
SED = /usr/bin/sed
XSLTPROC = $(PREFIX)/bin/xsltproc
+XMLLINT = $(PREFIX)/bin/xmllint
# data directories:
GUIDE = guide
@@ -80,3 +81,11 @@
$(RM) -rf $(GUIDE-RESULT)
$(RM) -rf $(MAN-RESULT)
$(RM) -rf $(MAN-TMP)
+ $(RM) -f guide.tmp.xml
+
+# Validate the xml files for the guide.
+# These two steps are necessary as otherwise xmllint complains about missing
+# ids.
+validate:
+ $(XMLLINT) --xinclude $(GUIDE-SRC)/guide.xml > guide.tmp.xml
+ $(XMLLINT) --loaddtd --valid --noout guide.tmp.xml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080114/b49cc9b6/attachment.html
More information about the macports-changes
mailing list