aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-11-07 18:20:08 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-11-07 18:20:08 +0000
commit181f228a2f7a8faf66edaad8245fb6511172ab12 (patch)
tree3dda1b67bdeef6b5a274a25cd7be85bb194ba88c /share
parenta1ca8916e1262fbb6a5cdc7073f5017b4908ebbc (diff)
downloaddoc-DOCBOOK50.tar.gz
doc-DOCBOOK50.zip
- Fix build of release notesDOCBOOK50
Approved by: doceng (self)
Diffstat (limited to 'share')
-rw-r--r--share/mk/doc.docbook.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk
index 80d6e8fe52..7fed367aa2 100644
--- a/share/mk/doc.docbook.mk
+++ b/share/mk/doc.docbook.mk
@@ -262,11 +262,13 @@ ${DOC}.parsed.xml: ${SRCS}
${XMLLINT} --nonet --noent --valid --dropdtd --xinclude ${MASTERDOC} > ${.TARGET}.tmp
.if defined(PROFILING)
@${ECHO} "==> Profiling"
- ${XSLTPROC} ${PROFILING} ${XSLPROF} ${.TARGET}.tmp > ${DOC}.parsed.print.xml
+ ${XSLTPROC} ${PROFILING} ${XSLPROF} ${.TARGET}.tmp > ${.TARGET}
+ ${RM} ${.TARGET}.tmp
.else
- ${SED} 's|@@URL_RELPREFIX@@|http://www.FreeBSD.org|g' < ${.TARGET}.tmp > ${DOC}.parsed.print.xml
- ${SED} 's|@@URL_RELPREFIX@@|../../../..|g' < ${.TARGET}.tmp > ${.TARGET}
+ ${MV} ${.TARGET}.tmp ${.TARGET}
.endif
+ ${SED} 's|@@URL_RELPREFIX@@|http://www.FreeBSD.org|g' < ${.TARGET} > ${DOC}.parsed.print.xml
+ ${SED} -i '' -e 's|@@URL_RELPREFIX@@|../../../..|g' ${.TARGET}
# XHTML -------------------------------------------------------------