diff options
Diffstat (limited to 'libparc/scripts/version')
-rw-r--r-- | libparc/scripts/version | 9 |
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} |