svn commit: r41224 - projects/xml-tools/share/mk
Gabor Kovesdan
gabor at FreeBSD.org
Fri Mar 15 10:26:28 UTC 2013
Author: gabor
Date: Fri Mar 15 10:26:27 2013
New Revision: 41224
URL: http://svnweb.freebsd.org/changeset/doc/41224
Log:
- Add support for profiling
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 08:40:03 2013 (r41223)
+++ projects/xml-tools/share/mk/doc.docbook.mk Fri Mar 15 10:26:27 2013 (r41224)
@@ -80,6 +80,7 @@ DSLHTML?= ${DOC_PREFIX}/share/xml/spellc
DSLPRINT?= ${DOC_PREFIX}/share/xml/default.dsl
DSLPGP?= ${DOC_PREFIX}/share/xml/pgp.dsl
+XSLPROF?= /usr/local/share/xsl/docbook/profiling/profile.xsl
XSLXHTML?= ${DOC_PREFIX}/${LANGCODE}/share/xsl/freebsd-xhtml.xsl
XSLXHTMLCHUNK?= ${DOC_PREFIX}/${LANGCODE}/share/xsl/freebsd-xhtml-chunk.xsl
XSLEPUB?= ${DOC_PREFIX}/${LANGCODE}/share/xsl/freebsd-epub.xsl
@@ -348,15 +349,22 @@ ${sch}.xsl: ${sch}
# Parsed XML -------------------------------------------------------
${DOC}.parsed.xml: ${SRCS}
- ${GREP} '^<?xml version=.*?>' ${DOC}.xml > ${.TARGET}
+ ${GREP} '^<?xml version=.*?>' ${DOC}.xml > ${.TARGET}.tmp
.if ${DOC} == "book"
- ${ECHO_CMD} '<!DOCTYPE book PUBLIC "-//FreeBSD//DTD DocBook XML V4.5-Based Extension//EN" "../../../share/xml/freebsd45.dtd">' >> ${.TARGET}
+ ${ECHO_CMD} '<!DOCTYPE book PUBLIC "-//FreeBSD//DTD DocBook XML V4.5-Based Extension//EN" "../../../share/xml/freebsd45.dtd">' >> ${.TARGET}.tmp
.else
- ${ECHO_CMD} '<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook XML V4.5-Based Extension//EN" "../../../share/xml/freebsd45.dtd">' >> ${.TARGET}
+ ${ECHO_CMD} '<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook XML V4.5-Based Extension//EN" "../../../share/xml/freebsd45.dtd">' >> ${.TARGET}.tmp
.endif
@${ECHO} "==> Basic validation"
${XMLLINT} --nonet --noent --valid --xinclude --dropdtd ${MASTERDOC} | \
- ${GREP} -v '^<?xml version=.*?>' >> ${.TARGET}
+ ${GREP} -v '^<?xml version=.*?>' >> ${.TARGET}.tmp
+.if defined(PROFILING)
+ @${ECHO} "==> Profiling"
+ ${XSLTPROC} ${PROFILING} ${XSLPROF} ${.TARGET}.tmp > ${.TARGET}
+ ${RM} ${.TARGET}.tmp
+.else
+ ${MV} ${.TARGET}.tmp ${.TARGET}
+.endif
# XHTML -------------------------------------------------------------
More information about the svn-doc-projects
mailing list