diff options
Diffstat (limited to 'doc/conf.py')
-rw-r--r-- | doc/conf.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/conf.py b/doc/conf.py index 2d4d8d8b29511..62935cf4e43dc 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -21,6 +21,14 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) +import subprocess + +# +# Instead of hardcoding the version number here, we read it from the +# project's configure script +# +vers_cmd = "grep AC_INIT ../configure.ac | awk '{ print substr($2, 2, length($2) - 3);}'" +version = subprocess.check_output(vers_cmd, shell=True).decode("utf-8") # -- General configuration ------------------------------------------------ @@ -47,7 +55,7 @@ master_doc = 'index' # General information about the project. project = 'libxo' -copyright = '2017, Juniper Networks' +copyright = '2017-2019, Juniper Networks Inc' author = 'Phil Shafer' default_role = 'code' primary_domain = 'c' @@ -58,9 +66,9 @@ smart_quotes = False # built documents. # # The short X.Y version. -version = '0.8.4' +#version = 'develop' # The full version, including alpha/beta/rc tags. -release = '0.8.4' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |