2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

change determining kea version to be based on reading configure.ac

This commit is contained in:
Michal Nowikowski
2019-07-19 08:11:34 +02:00
parent 3a0bd99068
commit a1692593be
2 changed files with 13 additions and 2 deletions

View 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.