aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-11-07 12:44:11 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-11-07 12:44:11 +0000
commit61e970ba9d0cfa75b75e61aae5547602bb664858 (patch)
treea7b11be8c653542e3beda6c881901155c8e2b883
parent8f47ebe2523824bbc5cbf6aad8eb9e50f2447c61 (diff)
downloaddoc-61e970ba9d0cfa75b75e61aae5547602bb664858.tar.gz
doc-61e970ba9d0cfa75b75e61aae5547602bb664858.zip
- Fix profiling support
Notes
Notes: svn path=/projects/db5/; revision=43119
-rw-r--r--share/mk/doc.docbook.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk
index 6c1a2e339b..93dc3c1ac8 100644
--- a/share/mk/doc.docbook.mk
+++ b/share/mk/doc.docbook.mk
@@ -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 -------------------------------------------------------------