Add set-version.sh
This commit is contained in:
parent
d3f86fc318
commit
a79cfc1f1f
1 changed files with 15 additions and 0 deletions
15
set-version.sh
Normal file
15
set-version.sh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if test $# != 2
|
||||||
|
then
|
||||||
|
echo "current and next version missing"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
CURRENT=$1
|
||||||
|
NEXT=$2
|
||||||
|
|
||||||
|
echo Updating version from $CURRENT to $NEXT
|
||||||
|
|
||||||
|
./mvnw versions:set -DnewVersion=$NEXT
|
||||||
|
perl -p -i -e "s,$CURRENT</,$NEXT</," builder/pom.xml builder/src/main/resources/README-template.md regressions/pom.xml ruleset/pom.xml tile/pom.xml tile/tile.xml
|
Loading…
Reference in a new issue