summaryrefslogtreecommitdiffstats
path: root/release/doc
diff options
context:
space:
mode:
authorbmah <bmah@FreeBSD.org>2002-06-20 21:19:49 +0000
committerbmah <bmah@FreeBSD.org>2002-06-20 21:19:49 +0000
commitd0fe7ef0c80799f14a11f30e2a23335c2c83bfa2 (patch)
treee9b57d9b1c7a60bb2e7c1e6382106995f9ad1a26 /release/doc
parent3c1b590b1703814b73c679c7f60d34e347d29da9 (diff)
downloadFreeBSD-src-d0fe7ef0c80799f14a11f30e2a23335c2c83bfa2.zip
FreeBSD-src-d0fe7ef0c80799f14a11f30e2a23335c2c83bfa2.tar.gz
Provide a way to keep out old ("historic") release notes from bloating
the size of the rendered release notes. By default, any element with a role="historic" attribute won't get rendered in the output unless the INCLUDE_HISTORIC Makefile variable is defined.
Diffstat (limited to 'release/doc')
-rw-r--r--release/doc/en_US.ISO8859-1/relnotes/article.sgml39
-rw-r--r--release/doc/en_US.ISO8859-1/relnotes/common/new.sgml39
-rw-r--r--release/doc/en_US.ISO8859-1/relnotes/common/relnotes.ent3
-rw-r--r--release/doc/share/mk/doc.relnotes.mk17
-rw-r--r--release/doc/share/sgml/release.dsl18
-rw-r--r--release/doc/share/sgml/release.ent4
6 files changed, 102 insertions, 18 deletions
diff --git a/release/doc/en_US.ISO8859-1/relnotes/article.sgml b/release/doc/en_US.ISO8859-1/relnotes/article.sgml
index 96233be..adad49c 100644
--- a/release/doc/en_US.ISO8859-1/relnotes/article.sgml
+++ b/release/doc/en_US.ISO8859-1/relnotes/article.sgml
@@ -14,7 +14,14 @@
<abstract>
<para>The release notes for &os; &release.current; contain a summary
- of the changes made in the &os; base system since &release.prev;.
+ of
+<![ %include.historic; [
+ the changes made in the &os; base system since &release.prev;.
+]]>
+<![ %no.include.historic; [
+ recent changes made to the &os; base system on the &release.branch;
+ development branch.
+]]>
Both changes for kernel and userland are listed, as well as
applicable security advisories that were issued since the last
release. Some brief remarks on upgrading are also presented.</para>
@@ -26,8 +33,8 @@
<para>This document contains the release notes for &os;
&release.current; on the &arch.print; hardware platform. It
- describes new features of &os; that have been added (or changed)
- since &release.prev;. It also provides some notes on upgrading
+ describes recently added, changed, or deleted features of &os;.
+ It also provides some notes on upgrading
from previous versions of &os;.</para>
<![ %release.type.snapshot [
@@ -58,13 +65,27 @@
<sect1>
<title>What's New</title>
- <para>This section describes the most user-visible new or changed
- features in &os; since &release.prev;. Typical release note items
+ <para>This section describes
+<![ %include.historic; [
+ the most user-visible new or changed features in &os;
+ since &release.prev;.
+ In general, changes described here are unique to the &release.branch;
+ branch unless specifically marked as &merged; features.
+]]>
+<![ %no.include.historic; [
+ many of the user-visible new or changed features in &os;
+ since &release.prev;. It includes items that are unique to the
+ &release.branch; branch, as well as some features that may have been
+ recently merged to
+ other branches (after &os; &release.prev.historic;). The later
+ items are marked as &merged;.
+]]>
+ </para>
+
+ <para>Typical release note items
document new drivers or hardware support, new commands or options,
- major bugfixes, or contributed software upgrades. Security
- advisories issued after &release.prev; are also listed. In
- general, changes described here are unique to the &release.branch;
- branch unless specifically marked as &merged; features.</para>
+ major bugfixes, or contributed software upgrades. Applicable security
+ advisories issued after &release.prev; are also listed.</para>
<para>Many additional changes were made to &os; that are not listed
here for lack of space. For example, documentation was corrected
diff --git a/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml b/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml
index 96233be..adad49c 100644
--- a/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml
+++ b/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml
@@ -14,7 +14,14 @@
<abstract>
<para>The release notes for &os; &release.current; contain a summary
- of the changes made in the &os; base system since &release.prev;.
+ of
+<![ %include.historic; [
+ the changes made in the &os; base system since &release.prev;.
+]]>
+<![ %no.include.historic; [
+ recent changes made to the &os; base system on the &release.branch;
+ development branch.
+]]>
Both changes for kernel and userland are listed, as well as
applicable security advisories that were issued since the last
release. Some brief remarks on upgrading are also presented.</para>
@@ -26,8 +33,8 @@
<para>This document contains the release notes for &os;
&release.current; on the &arch.print; hardware platform. It
- describes new features of &os; that have been added (or changed)
- since &release.prev;. It also provides some notes on upgrading
+ describes recently added, changed, or deleted features of &os;.
+ It also provides some notes on upgrading
from previous versions of &os;.</para>
<![ %release.type.snapshot [
@@ -58,13 +65,27 @@
<sect1>
<title>What's New</title>
- <para>This section describes the most user-visible new or changed
- features in &os; since &release.prev;. Typical release note items
+ <para>This section describes
+<![ %include.historic; [
+ the most user-visible new or changed features in &os;
+ since &release.prev;.
+ In general, changes described here are unique to the &release.branch;
+ branch unless specifically marked as &merged; features.
+]]>
+<![ %no.include.historic; [
+ many of the user-visible new or changed features in &os;
+ since &release.prev;. It includes items that are unique to the
+ &release.branch; branch, as well as some features that may have been
+ recently merged to
+ other branches (after &os; &release.prev.historic;). The later
+ items are marked as &merged;.
+]]>
+ </para>
+
+ <para>Typical release note items
document new drivers or hardware support, new commands or options,
- major bugfixes, or contributed software upgrades. Security
- advisories issued after &release.prev; are also listed. In
- general, changes described here are unique to the &release.branch;
- branch unless specifically marked as &merged; features.</para>
+ major bugfixes, or contributed software upgrades. Applicable security
+ advisories issued after &release.prev; are also listed.</para>
<para>Many additional changes were made to &os; that are not listed
here for lack of space. For example, documentation was corrected
diff --git a/release/doc/en_US.ISO8859-1/relnotes/common/relnotes.ent b/release/doc/en_US.ISO8859-1/relnotes/common/relnotes.ent
index d52afee..1208615 100644
--- a/release/doc/en_US.ISO8859-1/relnotes/common/relnotes.ent
+++ b/release/doc/en_US.ISO8859-1/relnotes/common/relnotes.ent
@@ -7,6 +7,9 @@
<!-- The marker for MFCs. -->
<!ENTITY merged "[MERGED]">
+<!ENTITY % include.historic "IGNORE">
+<!ENTITY % no.include.historic "IGNORE">
+
<!-- Files to be included -->
<!ENTITY art SYSTEM "../common/new.sgml">
diff --git a/release/doc/share/mk/doc.relnotes.mk b/release/doc/share/mk/doc.relnotes.mk
index 546ad9f..0335640 100644
--- a/release/doc/share/mk/doc.relnotes.mk
+++ b/release/doc/share/mk/doc.relnotes.mk
@@ -9,3 +9,20 @@ EXTRA_CATALOGS+= ${RELN_ROOT}/share/sgml/catalog
# Use the appropriate architecture-dependent RELNOTESng stylesheet
DSLHTML?= ${RELN_ROOT}/share/sgml/default.dsl
DSLPRINT?= ${RELN_ROOT}/share/sgml/default.dsl
+
+#
+# Tweakable Makefile variables
+#
+# INCLUDE_HISTORIC Used by relnotes document only. When set,
+# causes all release notes entries to be printed,
+# even those marked as "historic". If not set
+# (the default), only print "non-historic"
+# release note entries. To designate a release
+# note entry as "historic", add a role="historic"
+# attribute to the applicable element(s).
+#
+.if defined(INCLUDE_HISTORIC)
+JADEFLAGS+= -iinclude.historic
+.else
+JADEFLAGS+= -ino.include.historic
+.endif
diff --git a/release/doc/share/sgml/release.dsl b/release/doc/share/sgml/release.dsl
index ee37005..6bb5026 100644
--- a/release/doc/share/sgml/release.dsl
+++ b/release/doc/share/sgml/release.dsl
@@ -3,6 +3,8 @@
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % output.html "IGNORE">
<!ENTITY % output.print "IGNORE">
+<!ENTITY % include.historic "IGNORE">
+<!ENTITY % no.include.historic "IGNORE">
<!ENTITY freebsd.dsl PUBLIC "-//FreeBSD//DOCUMENT DocBook Stylesheet//EN" CDATA DSSSL>
]>
@@ -10,6 +12,14 @@
<style-specification use="docbook">
<style-specification-body>
+; Configure behavior of this stylesheet
+<![ %include.historic; [
+ (define %include-historic% #t)
+]]>
+<![ %no.include.historic; [
+ (define %include-historic% #f)
+]]>
+
; String manipulation functions
(define (split-string-to-list STR)
;; return list of STR separated with char #\ or #\,
@@ -45,9 +55,17 @@
; Deal with conditional inclusion of text via entities.
(default
(let* ((arch (attribute-string (normalize "arch")))
+ (role (attribute-string (normalize "role")))
(for-arch (entity-text "arch")))
(cond
+ ; If role=historic, and we're not printing historic things, then
+ ; don't output this element.
+ ((and (equal? role "historic")
+ (not %include-historic%))
+ (empty-sosofo))
+
+
; If arch= not specified, then print unconditionally. This clause
; handles the majority of cases.
((or (equal? arch #f) (equal? arch ""))
diff --git a/release/doc/share/sgml/release.ent b/release/doc/share/sgml/release.ent
index ca39172..055643e 100644
--- a/release/doc/share/sgml/release.ent
+++ b/release/doc/share/sgml/release.ent
@@ -18,6 +18,10 @@
edge. -->
<!ENTITY release.prev.stable "4.5-RELEASE">
+<!-- The previous historical release. Used only to tell what was
+ the cutoff point for "historic" release notes. -->
+<!ENTITY release.prev.historic "4.6-RELEASE">
+
<!-- The next version to be released, usually used for snapshots. -->
<!ENTITY release.next "5.0-RELEASE">
OpenPOWER on IntegriCloud