summaryrefslogtreecommitdiffstats
path: root/src/doc/version.py.in
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2012-10-17 18:12:52 -0400
committerBen Kaduk <kaduk@mit.edu>2012-11-14 14:09:03 -0500
commit07c77b51d33c23d3ea28d588adc43b6c5ec5c20f (patch)
tree3b7cfe64a669b1bb62ba9a85a1f11c475591293f /src/doc/version.py.in
parente89f6c6532787cf8e90ee80bdbb05e8abc13c565 (diff)
downloadkrb5-07c77b51d33c23d3ea28d588adc43b6c5ec5c20f.tar.gz
krb5-07c77b51d33c23d3ea28d588adc43b6c5ec5c20f.tar.xz
krb5-07c77b51d33c23d3ea28d588adc43b6c5ec5c20f.zip
Generate and use version.py for Sphinx
Sphinx's idea of the version number appears in the man pages and compiled PDF documents, and shows up as metadata in the generated HTML sources. Extract the version information from the master source (patchlevel.h) into a form usable by Sphinx. ticket: 7433 tags: pullup
Diffstat (limited to 'src/doc/version.py.in')
-rw-r--r--src/doc/version.py.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/doc/version.py.in b/src/doc/version.py.in
new file mode 100644
index 0000000000..0a344a7797
--- /dev/null
+++ b/src/doc/version.py.in
@@ -0,0 +1,21 @@
+#include "patchlevel.h"
+
+r_major = KRB5_MAJOR_RELEASE
+r_minor = KRB5_MINOR_RELEASE
+r_patch = KRB5_PATCHLEVEL
+
+#ifdef KRB5_RELTAIL
+r_tail = KRB5_RELTAIL
+#else
+r_tail = None
+#endif
+#ifdef KRB5_RELDATE
+r_date = KRB5_RELDATE
+#else
+r_date = None
+#endif
+#ifdef KRB5_RELTAG
+r_tag = KRB5_RELTAG
+#else
+r_date = None
+#endif