From e8e914a2d6fbefe2ab403af1ec43f60623edc5f4 Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Tue, 30 Apr 2019 09:39:01 -0400 Subject: Roll master to El Alto Roll master version to El Alto versions Change-Id: I43315307b01929c46333f181f5b516ab2704696f Issue-ID: CCSDK-1222 Signed-off-by: Timoney, Dan (dt5972) --- changeVersion.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 changeVersion.sh (limited to 'changeVersion.sh') diff --git a/changeVersion.sh b/changeVersion.sh new file mode 100755 index 00000000..144ca539 --- /dev/null +++ b/changeVersion.sh @@ -0,0 +1,20 @@ +#! /bin/bash + +if [ $# -ne 1 ] +then + echo "Usage: $0 new-version" + exit 1 +fi + + +mvn versions:set versions:update-child-modules versions:commit -B -DnewVersion=$1 + +base_version=$(echo $1 | cut -d- -f1) +major=$(echo $base_version | cut -d. -f1) +minor=$(echo $base_version | cut -d. -f2) +patch=$(echo $base_version | cut -d. -f3) + +if [ -f version.properties ] +then + sed -i '' -e 's/\(release_name=\).*/\1'$major'/;s/\(sprint_number=\).*/\1'$minor'/;s/\(feature_revision=\).*/\1'$patch'/' version.properties +fi -- cgit 1.2.3-korg