From 07c77b51d33c23d3ea28d588adc43b6c5ec5c20f Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 17 Oct 2012 18:12:52 -0400 Subject: 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 --- src/doc/version.py.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/doc/version.py.in (limited to 'src/doc/version.py.in') 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 -- cgit