2018-01-24 21:56:07 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-10-07 18:13:09 +01:00
|
|
|
if test $# != 1
|
2018-01-24 21:56:07 +00:00
|
|
|
then
|
2018-10-07 18:13:09 +01:00
|
|
|
echo "Next version missing"
|
2018-01-24 21:56:07 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2018-10-07 18:13:09 +01:00
|
|
|
NEXT=$1
|
2018-01-24 21:56:07 +00:00
|
|
|
|
2018-10-07 18:13:09 +01:00
|
|
|
echo "Updating version to $NEXT..."
|
|
|
|
mvn versions:set -DnewVersion=$NEXT -DgenerateBackupPoms=false -DprocessAllModules
|
|
|
|
echo "Updating README template..."
|
2018-10-21 18:27:10 +01:00
|
|
|
perl -p -i -e "s,DEV-SNAPSHOT</,$NEXT</," builder/src/main/resources/README-template.md tile/pom.xml
|
2018-10-07 18:13:09 +01:00
|
|
|
echo "Done."
|