diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-03-25 11:10:51 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-03-25 11:16:20 -0400 |
commit | 7a5f874e699d09ee8305ee4ab13533b4798de209 (patch) | |
tree | b03e002a0862f8a097d3bc39125b6548f9756e2b /doc | |
parent | 4c8a74e58153675c6fcf32a088a15f9d5e1d92b6 (diff) | |
download | xdg-app-7a5f874e699d09ee8305ee4ab13533b4798de209.tar.gz |
docs: Pick up the version number automatically
This is copied from what GTK+ does for its docs.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/Makefile.am | 2 | ||||
-rw-r--r-- | doc/reference/version.xml.in | 1 | ||||
-rw-r--r-- | doc/reference/xdg-app-docs.xml | 5 |
3 files changed, 6 insertions, 2 deletions
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am index 8b60508..5eeeba0 100644 --- a/doc/reference/Makefile.am +++ b/doc/reference/Makefile.am @@ -28,6 +28,8 @@ GTKDOC_LIBS = $(top_builddir)/libxdg-app.la $(BASE_LIBS) include $(top_srcdir)/gtk-doc.make +EXTRA_DIST += version.xml.in + if ENABLE_GTK_DOC_CHECK TESTS_ENVIRONMENT = \ DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \ diff --git a/doc/reference/version.xml.in b/doc/reference/version.xml.in new file mode 100644 index 0000000..e1b2fdf --- /dev/null +++ b/doc/reference/version.xml.in @@ -0,0 +1 @@ +@XDG_APP_MAJOR_VERSION@.@XDG_APP_MINOR_VERSION@.@XDG_APP_MICRO_VERSION@ diff --git a/doc/reference/xdg-app-docs.xml b/doc/reference/xdg-app-docs.xml index 3240404..1fe4524 100644 --- a/doc/reference/xdg-app-docs.xml +++ b/doc/reference/xdg-app-docs.xml @@ -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>xdg-app Reference Manual</title> + <title>xdg-app Library Reference Manual</title> <releaseinfo> - for xdg-app 1.0. + For xdg-app &version; </releaseinfo> </bookinfo> |