From f115a31e290a8b675f4b77cf0357c22dd518c7cf Mon Sep 17 00:00:00 2001 From: Navin Agrawal Date: Fri, 29 May 2015 22:16:19 -0700 Subject: [PATCH] Bug 3453 : Error in running version.sh Change-Id: I030d7a07125c3b389e5c3829e14b736ac032c641 Signed-off-by: Navin Agrawal Signed-off-by: Thanh Ha --- version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.sh b/version.sh index 9a707aae..c07d0adf 100755 --- a/version.sh +++ b/version.sh @@ -53,7 +53,7 @@ RELEASE_TAG=$2 FILENAMES="pom.xml features.xml" -if [ "$MODE" == "bump" ] +if [ "$MODE" = "bump" ] then echo "Bumping versions..." for name in $FILENAMES @@ -75,7 +75,7 @@ then find . -type f -name "$name" -exec perl -i -pe "s/(\d\d\d\d\.\d\d\.\d\d)\.(\d+)\.(\d+)-$RELEASE_TAG/\$1.\$2.@{[1+\$3]}-SNAPSHOT/g" {} + find . -type f -name "$name" -exec perl -i -pe "s/(\d\d\d\d\.\d\d\.\d\d)\.(\d+)-$RELEASE_TAG/\$1.\$2.1-SNAPSHOT/g" {} + done -elif [ "$MODE" == "release" ] +elif [ "$MODE" = "release" ] then for name in $FILENAMES do -- 2.16.6