[passepartout] added version information to the manual



commit 9c9f0d2c013101b05babe5a8c170d0946f8dd8e2
Author: Sven Herzberg <herzi lanedo com>
Date:   Thu Apr 16 11:11:49 2009 +0200

    added version information to the manual
    
    * configure.ac: create the version file
    * doc/Makefile.am: proper build structure for the documentation
    * doc/manual.xml: include the version information
    * doc/version.txt.in: version template
---
 configure.ac       |    6 ++++--
 doc/Makefile.am    |    5 ++++-
 doc/manual.xml     |    7 ++++++-
 doc/version.txt.in |    1 +
 4 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index a7ed4a4..61c379c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -135,6 +135,10 @@ if test "$SCROLLKEEPER_UPDATE" = "no"; then
 	AC_MSG_ERROR([please install scrollkeeper])
 fi
 
+AC_CONFIG_FILES([doc/Makefile
+		 doc/version.txt
+		 doc/examples/Makefile])
+
 dnl  ------
 dnl | i18n |
 dnl  ------
@@ -176,7 +180,5 @@ AC_CONFIG_FILES([Makefile
                  src/pptout/widget/Makefile
                  src/pptout/icons/Makefile
                  src/xml2ps/Makefile
-		 doc/Makefile
-		 doc/examples/Makefile
 		 logotype/Makefile])
 AC_OUTPUT
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 98ad5ed..25f8ea6 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -16,6 +16,8 @@ dist_help_DATA=\
 	users_guide.xml \
 	$(top_srcdir)/logotype/pptout.png \
 	$(NULL)
+dist_built_in=version.txt.in
+nodist_help_DATA=$(dist_built_in:.in=)
 helpdir=$(datadir)/gnome/help/passepartout/C
 
 check-local: check-manual
@@ -70,5 +72,6 @@ SUFFIXES=.txt .xml .html
 	@echo "[GEN]  $@"
 	@xsltproc -o $@ $(srcdir)/$(DOCBOOK2HTML) $<
 
-EXTRA_DIST=$(man_MANS) $(DOCBOOK2TXT) $(DOCBOOK2HTML) $(omf_in_files)
+EXTRA_DIST=$(dist_built_in) $(DOCBOOK2TXT) $(DOCBOOK2HTML) $(man_MANS) $(omf_in_files)
 CLEANFILES=$(omf_DATA) $(nodist_doc_DATA)
+DISTCLEANFILES=$(nodist_help_DATA)
diff --git a/doc/manual.xml b/doc/manual.xml
index b13f663..f17cdfb 100644
--- a/doc/manual.xml
+++ b/doc/manual.xml
@@ -1,9 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
-                      "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";>
+                      "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"; [
+<!ENTITY version SYSTEM "version.txt">
+]>
 <book>
   <bookinfo>
     <title>Passepartout Manual</title>
+    <releaseinfo>
+      for version &version;
+    </releaseinfo>
     <xi:include href="legal.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
   </bookinfo>
 
diff --git a/doc/version.txt.in b/doc/version.txt.in
new file mode 100644
index 0000000..d78bda9
--- /dev/null
+++ b/doc/version.txt.in
@@ -0,0 +1 @@
+ VERSION@



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