X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=build-root%2Fscripts%2Fversion;h=8392c68b96d27346da11279e67f2d0fbf3fbfe7b;hb=e4e34c23fe7050c26967997fdb8f555c51fd3961;hp=8724ced3c18ddb009a00d402020384121fe79c0a;hpb=750c62548eb10e79ff35a963df248ccfb064ec24;p=vpp.git diff --git a/build-root/scripts/version b/build-root/scripts/version deleted file mode 100755 index 8724ced3c18..00000000000 --- a/build-root/scripts/version +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -TAG=$(git describe | cut -d- -f1 | sed -e 's/^v//') -ADD=$(git describe | cut -s -d- -f2) -CMT=$(git describe --dirty --match 'v*'| cut -s -d- -f3,4) - -if [ -n "${BUILD_NUMBER}" ]; then - BLD="~b${BUILD_NUMBER}" -fi - -if [ "$1" = "rpm-version" ]; then - echo ${TAG} - exit -fi - -if [ "$1" = "rpm-release" ]; then - [ -z "${ADD}" ] && echo release && exit - echo ${ADD}${CMT:+~${CMT}}${BLD} - exit -fi - -if [ -n "${ADD}" ]; then - echo ${TAG}-${ADD}${CMT:+~${CMT}}${BLD} -else - echo ${TAG} -fi diff --git a/build-root/scripts/version b/build-root/scripts/version new file mode 120000 index 00000000000..8392c68b96d --- /dev/null +++ b/build-root/scripts/version @@ -0,0 +1 @@ +../../src/scripts/version \ No newline at end of file