aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2018-03-07 10:24:59 +0100
committerMauro Sardara <msardara+fdio@cisco.com>2018-03-07 10:24:59 +0100
commitb490e2411a848940b1055debcb40f75a1921090e (patch)
treee0d0e59804b452b3cf1e8839d4e327c6a58375f7
parent0ce674a3408e2ab793dbc3fbe3e5b09e17b358e4 (diff)
Fix version script.
Now it prints the correct rpm-version for libparc. Change-Id: I36bc88236802092ed4f6d96323f927db34a05a4c Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
-rw-r--r--libparc/scripts/version9
1 files changed, 5 insertions, 4 deletions
diff --git a/libparc/scripts/version b/libparc/scripts/version
index ad4f8ece..dcf81d30 100644
--- a/libparc/scripts/version
+++ b/libparc/scripts/version
@@ -31,14 +31,15 @@ CMTR=$(echo $CMT | sed 's/-/_/')
if [ -n "${BUILD_NUMBER}" ]; then
BLD="~b${BUILD_NUMBER}"
-fi
-
-if [ -n "${BUILD_NUMBER}" ]; then
- BLD="~b${BUILD_NUMBER}"
else
BLD="~b1"
fi
+if [ "$1" = "rpm-version" ]; then
+ echo ${TAG}
+ exit
+fi
+
if [ "$1" = "rpm-release" ]; then
[ -z "${ADD}" ] && echo release && exit
echo ${ADD}${CMTR:+~${CMTR}}${BLD}