]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
change determining kea version to be based on reading configure.ac
authorMichal Nowikowski <godfryd@isc.org>
Fri, 19 Jul 2019 06:11:34 +0000 (08:11 +0200)
committerMichal Nowikowski <godfryd@isc.org>
Tue, 30 Jul 2019 08:45:13 +0000 (10:45 +0200)
doc/sphinx/Makefile.am
doc/sphinx/conf.py

index 92b7ed14036449d25f3f8f5eaed2d463c64bc27d..8ae4330d03070d8c3bffdc48891e4ad244b849df 100644 (file)
@@ -10,8 +10,6 @@ sphinxopts+=-E
 sphinxopts+=-a
 sphinxopts+=-j auto
 sphinxopts+=-c "${abs_srcdir}"
-sphinxopts+=-D release="@PACKAGE_VERSION@"
-sphinxopts+=-D version="@PACKAGE_VERSION@"
 
 
 static_sources=
index ef52c59943c7fda92eb4d8f03838b11440a0973f..e0f36928eea3cca56e07beebe661b20a7c4c685b 100644 (file)
@@ -23,6 +23,19 @@ project = 'Kea'
 copyright = '2019, Internet Systems Consortium'
 author = 'Internet Systems Consortium'
 
+# get current kea version
+config_ac_path = '../../configure.ac'
+release = 'UNRELEASED'
+with open(config_ac_path) as f:
+    for line in f.readlines():
+        if line.startswith('AC_INIT(kea'):
+            parts = line.split(',')
+            release = parts[1]
+version = release
+print("=" * 30)
+print(release)
+print("=" * 30)
+
 # -- General configuration ---------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.