summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2019-08-09 08:46:38 +0200
committerTomek Mrugalski <tomasz@isc.org>2019-08-16 19:11:03 +0200
commitfceb85995ea3a1ab1fccd5172b086aeb79fad522 (patch)
tree357d6c467dbcb6e566f43c9f96831f8b04d6bd7e /tools
parent[#810, !471] fixed sphinx docs (diff)
downloadkea-fceb85995ea3a1ab1fccd5172b086aeb79fad522.tar.xz
kea-fceb85995ea3a1ab1fccd5172b086aeb79fad522.zip
[#810, !471] fixed sphinx docs
Diffstat (limited to 'tools')
-rwxr-xr-xtools/sysrepo_config6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/sysrepo_config b/tools/sysrepo_config
index fd28a86a46..ba15afe5a8 100755
--- a/tools/sysrepo_config
+++ b/tools/sysrepo_config
@@ -78,10 +78,8 @@ if [ "$1" = "--libs" ]; then
fi
if [ "$1" = "--modversion" ]; then
- MAJOR="1"
- MINOR="0"
- PATCH="0"
- echo "${MAJOR}.${MINOR}.${PATCH}"
+ VERSION=$(sysrepoctl -v | tr -s " " | cut -d " " -f 7)
+ echo "${VERSION}"
exit 0
fi