summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild/buildone.sh3
-rwxr-xr-xbuild/buildone_ng.sh3
-rw-r--r--debian/changelog6
-rw-r--r--en/bookinfo.xml4
4 files changed, 16 insertions, 0 deletions
diff --git a/build/buildone.sh b/build/buildone.sh
index 89facb942..2e68ff496 100755
--- a/build/buildone.sh
+++ b/build/buildone.sh
@@ -8,6 +8,8 @@ if [ "$1" = "--help" ]; then
exit 0
fi
+DEBVERSION=`dpkg-parsechangelog -l ../debian/changelog -S Version`
+
arch=${1:-i386}
language=${2:-en}
formats=${3:-html}
@@ -86,6 +88,7 @@ create_profiled () {
# Write dynamic non-profilable entities into the file
echo "<!-- arch- and lang-specific non-profilable entities -->" > $dynamic
+ echo "<!ENTITY debversion \"$DEBVERSION\">" >> $dynamic
echo "<!ENTITY langext \".${language}\">" >> $dynamic
echo "<!ENTITY architecture \"${arch}\">" >> $dynamic
echo "<!ENTITY arch-kernel \"${arch_kernel}\">" >> $dynamic
diff --git a/build/buildone_ng.sh b/build/buildone_ng.sh
index a9592cf35..a70e43284 100755
--- a/build/buildone_ng.sh
+++ b/build/buildone_ng.sh
@@ -12,6 +12,8 @@ if [ "$1" = "--help" ]; then
exit 0
fi
+DEBVERSION=`dpkg-parsechangelog -l ../debian/changelog -S Version`
+
arch=${1:-i386}
languages=${2:-en}
formats=${3:-html}
@@ -90,6 +92,7 @@ create_profiled () {
# Write dynamic non-profilable entities into the file
echo "<!-- arch- and lang-specific non-profilable entities -->" > $dynamic
+ echo "<!ENTITY debversion \"$DEBVERSION\">" >> $dynamic
echo "<!ENTITY langext \".${languages}\">" >> $dynamic
echo "<!ENTITY architecture \"${arch}\">" >> $dynamic
echo "<!ENTITY arch-kernel \"${arch_kernel}\">" >> $dynamic
diff --git a/debian/changelog b/debian/changelog
index eeca26203..8fc4e11b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+installation-guide (20200110) UNRELEASED; urgency=medium
+
+ * Show a build version within the manual, parsed from debian/changelog.
+
+ -- Holger Wansing <hwansing@mailbox.org> Fri, 10 Jan 2020 23:21:11 +0100
+
installation-guide (20191229) unstable; urgency=medium
[ Guilhem Moulin ]
diff --git a/en/bookinfo.xml b/en/bookinfo.xml
index bd6f2e111..f93774f18 100644
--- a/en/bookinfo.xml
+++ b/en/bookinfo.xml
@@ -74,5 +74,9 @@ under the terms of the GNU General Public License. Please refer to the
license in <xref linkend="appendix-gpl"/>.
</para>
+
+<para>
+Build version of this manual: &debversion;.
+</para>
</legalnotice>
</bookinfo>