summaryrefslogtreecommitdiffstats
path: root/build-root/scripts/version
diff options
context:
space:
mode:
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