VPP-448 Fix LISP APIs using binary data
[vpp.git] / build-root / scripts / version
index 8724ced..84ee5db 100755 (executable)
@@ -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