- Fix profiling support

This commit is contained in:
Gabor Kovesdan 2013-11-07 12:44:11 +00:00
parent 8f47ebe252
commit 61e970ba9d
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/db5/; revision=43119

View file

@ -259,13 +259,13 @@ ${sch:T}.xsl: ${sch}
# Parsed XML -------------------------------------------------------
${DOC}.parsed.xml: ${SRCS}
${XMLLINT} --nonet --noent --valid --dropdtd --xinclude ${MASTERDOC} > ${.TARGET}
${XMLLINT} --nonet --noent --valid --dropdtd --xinclude ${MASTERDOC} > ${.TARGET}.tmp
.if defined(PROFILING)
@${ECHO} "==> Profiling"
${XSLTPROC} ${PROFILING} ${XSLPROF} ${.TARGET}.tmp > ${.TARGET}
.else
${SED} 's|@@URL_RELPREFIX@@|http://www.FreeBSD.org|g' < ${.TARGET} > ${DOC}.parsed.print.xml
${SED} -i '' 's|@@URL_RELPREFIX@@|../../../..|g' ${.TARGET}
${SED} 's|@@URL_RELPREFIX@@|http://www.FreeBSD.org|g' < ${.TARGET}.tmp > ${DOC}.parsed.print.xml
${SED} 's|@@URL_RELPREFIX@@|../../../..|g' < ${.TARGET}.tmp > ${.TARGET}
.endif
# XHTML -------------------------------------------------------------