[libgweather] docs: Add version information



commit bd283918a99efb4aca4f16e7311e0d2c36f1671b
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Feb 19 14:42:31 2014 +0000

    docs: Add version information

 configure.ac             |    1 +
 doc/Makefile.am          |    5 +++--
 doc/libgweather-docs.xml |   11 +++++++----
 doc/version.xml.in       |    1 +
 4 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 323d9aa..edd46d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -215,6 +215,7 @@ dnl ***************************************************************************
 AC_CONFIG_FILES([
 Makefile
 doc/Makefile
+doc/version.xml
 po/Makefile.in
 po-locations/Makefile.in
 libgweather/Makefile
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 63bb8f3..0d7df56 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -59,7 +59,8 @@ HTML_IMAGES=
 
 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
 # e.g. content_files=running.sgml building.sgml changes-2.0.sgml
-content_files=
+content_files= \
+       version.xml
 
 # SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
 # These files must be listed here *and* in content_files
@@ -79,7 +80,7 @@ include $(top_srcdir)/gtk-doc.make
 
 # Other files to distribute
 # e.g. EXTRA_DIST += version.xml.in
-EXTRA_DIST +=
+EXTRA_DIST += version.xml.in
 
 # Files not to distribute
 # for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
diff --git a/doc/libgweather-docs.xml b/doc/libgweather-docs.xml
index cfa843f..d9919f5 100644
--- a/doc/libgweather-docs.xml
+++ b/doc/libgweather-docs.xml
@@ -1,19 +1,22 @@
 <?xml version="1.0"?>
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
-               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd";>
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd";
+[
+<!ENTITY version SYSTEM "version.xml">
+]>
 
 <book id="index" xmlns:xi="http://www.w3.org/2003/XInclude";>
   <bookinfo>
-    <title>libgweather-3.0 Reference Manual</title>
+    <title>libgweather Reference Manual</title>
     <releaseinfo>
-      for libgweather-3.0.
+      for libgweather &version;.
       The latest version of this documentation can be found on-line at
       <ulink role="online-location" 
url="http://developer.gnome.org/libgweather/unstable/";>http://developer.gnome.org/libgweather/unstable/</ulink>.
     </releaseinfo>
   </bookinfo>
 
   <chapter>
-    <title>libgweather-3.0 Reference Manual</title>
+    <title>libgweather Reference Manual</title>
     <xi:include href="xml/gweatherlocation.xml"/>
     <xi:include href="xml/gweathertimezone.xml"/>
     <xi:include href="xml/gweatherinfo.xml"/>
diff --git a/doc/version.xml.in b/doc/version.xml.in
new file mode 100644
index 0000000..9002026
--- /dev/null
+++ b/doc/version.xml.in
@@ -0,0 +1 @@
+ LIBGWEATHER_VERSION@


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]