svn commit: r41219 - projects/xml-tools/share/mk

Gabor Kovesdan gabor at FreeBSD.org
Fri Mar 15 07:49:34 UTC 2013


Author: gabor
Date: Fri Mar 15 07:49:33 2013
New Revision: 41219
URL: http://svnweb.freebsd.org/changeset/doc/41219

Log:
  - Make the validate/lint target fail when Schematron validation gives output.
    This is useful when running lint from upper directories. Otherwise,
    a validation error would not cause make to halt and an error could
    remain unspotted.

Modified:
  projects/xml-tools/share/mk/doc.docbook.mk

Modified: projects/xml-tools/share/mk/doc.docbook.mk
==============================================================================
--- projects/xml-tools/share/mk/doc.docbook.mk	Fri Mar 15 07:47:22 2013	(r41218)
+++ projects/xml-tools/share/mk/doc.docbook.mk	Fri Mar 15 07:49:33 2013	(r41219)
@@ -580,7 +580,11 @@ lint validate: ${SRCS} ${schxslts}
 .if defined(schxslts)
 	@${ECHO} "==> Validating with Schematron constraints"
 .for sch in ${schxslts}
-	@${XSLTPROC} ${sch} ${DOC}.parsed.xml
+	@( out=`${XSLTPROC} ${sch} ${DOC}.parsed.xml`; \
+	  if [ -n "$${out}" ]; then \
+		echo "$${out}"; \
+		false; \
+	  fi )
 .endfor
 .endif
 	@${RM} -rf ${CLEANFILES} ${CLEANDIRS} ${DOC}.parsed.xml


More information about the svn-doc-projects mailing list