aboutsummaryrefslogtreecommitdiff
path: root/release/doc/share/mk/doc.relnotes.mk
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-05-17 18:53:29 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-05-17 18:53:29 +0000
commit452f8fc4444dc2b8978b6925e5548c60f5eccd92 (patch)
tree0bbcf41b04f2f13769e8b3e369fc71d94a1d580f /release/doc/share/mk/doc.relnotes.mk
parent767a6420bc42ac55ead0d7afc0f4922b0cf4dcb0 (diff)
downloadsrc-452f8fc4444dc2b8978b6925e5548c60f5eccd92.tar.gz
src-452f8fc4444dc2b8978b6925e5548c60f5eccd92.zip
- Update the release notes to DocBook 4.5 XML to build with the
updated documentation tree
Notes
Notes: svn path=/head/; revision=250746
Diffstat (limited to 'release/doc/share/mk/doc.relnotes.mk')
-rw-r--r--release/doc/share/mk/doc.relnotes.mk23
1 files changed, 16 insertions, 7 deletions
diff --git a/release/doc/share/mk/doc.relnotes.mk b/release/doc/share/mk/doc.relnotes.mk
index e78c5274ef0f..19247ac2610d 100644
--- a/release/doc/share/mk/doc.relnotes.mk
+++ b/release/doc/share/mk/doc.relnotes.mk
@@ -2,12 +2,21 @@
DOC_PREFIX?= ${RELN_ROOT}/../../../doc
+# XXX
+RELEASETYPE!= grep -o 'release.type "[a-z]*"' ${RELN_ROOT}/share/xml/release.ent | sed 's|[a-z.]* "\([a-z]*\)"|\1|'
+.if ${RELEASETYPE} == "current"
+PROFILING+= --param profile.attribute "'releasetype'" --param profile.value "'current'"
+.elif ${RELEASETYPE} == "snapshot"
+PROFILING+= --param profile.attribute "'releasetype'" --param profile.value "'snapshot'"
+.elif ${RELEASETYPE} == "release"
+PROFILING+= --param profile.attribute "'releasetype'" --param profile.value "'release'"
+.endif
+
# Find the RELNOTESng document catalogs
-EXTRA_CATALOGS+= ${RELN_ROOT}/${LANGCODE}/share/xml/catalog
-EXTRA_CATALOGS+= ${RELN_ROOT}/share/xml/catalog
+EXTRA_CATALOGS+= file://${RELN_ROOT}/${LANGCODE}/share/xml/catalog.xml \
+ file://${RELN_ROOT}/share/xml/catalog.xml
# Use the appropriate architecture-dependent RELNOTESng stylesheet
-DSLHTML?= ${RELN_ROOT}/share/xml/default.dsl
DSLPRINT?= ${RELN_ROOT}/share/xml/default.dsl
#
@@ -23,7 +32,7 @@ MAN4DIR?= ${RELN_ROOT}/../../share/man/man4
MAN4PAGES?= ${MAN4DIR}/*.4 ${MAN4DIR}/man4.*/*.4
ARCHLIST?= ${RELN_ROOT}/share/misc/dev.archlist.txt
DEV-AUTODIR= ${RELN_ROOT:S/${.CURDIR}/${.OBJDIR}/}/share/xml
-CLEANFILES+= ${DEV-AUTODIR}/dev-auto.xml ${DEV-AUTODIR}/catalog-auto
+CLEANFILES+= ${DEV-AUTODIR}/dev-auto.ent
MAN2HWNOTES_CMD=${RELN_ROOT}/share/misc/man2hwnotes.pl
.if defined(HWNOTES_MI)
@@ -33,7 +42,7 @@ MAN2HWNOTES_FLAGS= -c
.endif
# Dependency that the article makefiles can use to pull in
-# dev-auto.xml.
-${DEV-AUTODIR}/catalog-auto ${DEV-AUTODIR}/dev-auto.xml: ${MAN4PAGES} \
+# dev-auto.ent.
+${DEV-AUTODIR}/catalog-auto ${DEV-AUTODIR}/dev-auto.ent: ${MAN4PAGES} \
${ARCHLIST} ${MAN2HWNOTES_CMD}
- cd ${RELN_ROOT}/share/xml && make MAN2HWNOTES_FLAGS=${MAN2HWNOTES_FLAGS} dev-auto.xml
+ cd ${RELN_ROOT}/share/xml && make MAN2HWNOTES_FLAGS=${MAN2HWNOTES_FLAGS} dev-auto.ent