[gsound] docs: Add automatic version numbering for documentation
- From: Tristan Brindle <tbrindle src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsound] docs: Add automatic version numbering for documentation
- Date: Mon, 1 Dec 2014 08:59:07 +0000 (UTC)
commit 2ad4c74537f3e36eab3d934bacd3b1c02d29515b
Author: Tristan Brindle <t c brindle gmail com>
Date: Mon Dec 1 15:21:50 2014 +0800
docs: Add automatic version numbering for documentation
Because I'm bound to forget to update it at some point otherwise
configure.ac | 1 +
docs/Makefile.am | 5 ++---
docs/gsound-docs.sgml | 3 ++-
docs/version.xml.in | 1 +
4 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d2b73a1..8b2a1f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,7 @@ VAPIGEN_CHECK($VALA_REQUIRED)
AC_OUTPUT([
Makefile
docs/Makefile
+docs/version.xml
tools/Makefile
gsound/gsound.pc
gsound/Makefile
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 35f06d2..22e2e17 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -89,9 +89,8 @@ include $(top_srcdir)/gtk-doc.make
# Other files to distribute
# e.g. EXTRA_DIST += version.xml.in
-#EXTRA_DIST += \
-# version.xml.in \
-# version-major.xml.in
+EXTRA_DIST += \
+ version.xml.in
# Files not to distribute
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
diff --git a/docs/gsound-docs.sgml b/docs/gsound-docs.sgml
index 768681f..2746a5c 100644
--- a/docs/gsound-docs.sgml
+++ b/docs/gsound-docs.sgml
@@ -3,12 +3,13 @@
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
+ <!ENTITY version SYSTEM "version.xml">
]>
<book id="index">
<bookinfo>
<title>GSound Reference Manual</title>
<releaseinfo>
- for gsound 1.0.
+ for gsound &version;.
The latest version of this documentation can be found on-line at
<ulink role="online-location" url="https://developer.gnome.org/gsound/stable/index.html">
https://developer.gnome.org/gsound/stable/index.html
diff --git a/docs/version.xml.in b/docs/version.xml.in
new file mode 100644
index 0000000..d78bda9
--- /dev/null
+++ b/docs/version.xml.in
@@ -0,0 +1 @@
+ VERSION@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]