aboutsummaryrefslogtreecommitdiffstats
path: root/build-root
diff options
context:
space:
mode:
authorEd Warnicke <eaw@cisco.com>2016-06-02 17:38:22 -0500
committerChris Luke <chris_luke@cable.comcast.com>2016-06-03 00:28:49 +0000
commit45eb9713fe77bbb460e91f62bdfb8ecb80555cb8 (patch)
tree14e78e2b9be9a6b2d60c7dac9288da8883f34e1e /build-root
parent5faba3aae647a5f07b0e83bffdef3d962b7da4fe (diff)
VPP-107 Fix for mistake that breaks pkg-rpm in
https://gerrit.fd.io/r/#/c/1338/ Change-Id: I8b7fffe24cbeb435b18faaada9ef1cea9fd93d39 Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'build-root')
-rwxr-xr-xbuild-root/scripts/version1
1 files changed, 1 insertions, 0 deletions
diff --git a/build-root/scripts/version b/build-root/scripts/version
index 8724ced3c18..84ee5dbe4de 100755
--- a/build-root/scripts/version
+++ b/build-root/scripts/version
@@ -15,6 +15,7 @@ fi
if [ "$1" = "rpm-release" ]; then
[ -z "${ADD}" ] && echo release && exit
+ CMT=$(git describe --dirty --match 'v*'| cut -s -d- -f3,4 | sed 's/-/_/')
echo ${ADD}${CMT:+~${CMT}}${BLD}
exit
fi