aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/scripts/version
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:30:09 +0000
commit227fe26987738d69cdc58fbee0b2ccbecf3ae97b (patch)
treedb61e001ce11547fcefda2b6f9c4300c0f8e5660 /build-root/scripts/version
parent4b8b718ff9bbba3bea018505ac591bb737f68001 (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/scripts/version')
-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