diff options
author | Tom Yu <tlyu@mit.edu> | 2012-10-17 18:12:52 -0400 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2012-11-14 14:09:03 -0500 |
commit | 07c77b51d33c23d3ea28d588adc43b6c5ec5c20f (patch) | |
tree | 3b7cfe64a669b1bb62ba9a85a1f11c475591293f /src/doc/version.py.in | |
parent | e89f6c6532787cf8e90ee80bdbb05e8abc13c565 (diff) | |
download | krb5-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.in | 21 |
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 |