summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2019-01-07 10:34:42 +0100
committerJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2019-01-07 10:34:42 +0100
commit732d150acab5ed446d6e650f0334b3a37db99588 (patch)
tree7a1f8d54d6b7fbc0bbcbf255126caa6881e27a61
parent686d0954883afbb06a00d92c13acf02592115056 (diff)
downloaddpdk-burst-replay-732d150acab5ed446d6e650f0334b3a37db99588.zip
dpdk-burst-replay-732d150acab5ed446d6e650f0334b3a37db99588.tar.gz
dpdk-burst-replay-732d150acab5ed446d6e650f0334b3a37db99588.tar.xz
Doc: grab the version from the configure.ac
-rw-r--r--configure.ac2
-rw-r--r--docs/src/conf.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index c6b323d..0da3bc4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018 Jonathan Ribas, FraudBuster. All rights reserved.
-AC_INIT([dpdk-replay], 1.0.0)
+AC_INIT([dpdk-burst-replay], 1.0.0)
AC_PREREQ([2.59])
AC_DEFINE_UNQUOTED([DPDK_REPLAY_VERSION_GIT], ["`git rev-parse HEAD`"], [current version])
diff --git a/docs/src/conf.py b/docs/src/conf.py
index 874b04a..f0e44d6 100644
--- a/docs/src/conf.py
+++ b/docs/src/conf.py
@@ -60,9 +60,10 @@ author = 'Jonathan Ribas'
# built documents.
#
# The short X.Y version.
-version = '1.0.0'
+import subprocess
+version = subprocess.check_output("grep AC_INIT ../../configure.ac|sed 's/.*, *//'|tr -d ')'", shell=True)
# The full version, including alpha/beta/rc tags.
-release = '1.0.0'
+release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.