blob: 144ca5391f841570cd5fbca3cdc392d10da98309 [file] [log] [blame]
Timoney, Dan (dt5972)e8e914a2019-04-30 09:39:01 -04001#! /bin/bash
2
3if [ $# -ne 1 ]
4then
5 echo "Usage: $0 new-version"
6 exit 1
7fi
8
9
10mvn versions:set versions:update-child-modules versions:commit -B -DnewVersion=$1
11
12base_version=$(echo $1 | cut -d- -f1)
13major=$(echo $base_version | cut -d. -f1)
14minor=$(echo $base_version | cut -d. -f2)
15patch=$(echo $base_version | cut -d. -f3)
16
17if [ -f version.properties ]
18then
19 sed -i '' -e 's/\(release_name=\).*/\1'$major'/;s/\(sprint_number=\).*/\1'$minor'/;s/\(feature_revision=\).*/\1'$patch'/' version.properties
20fi