19 lines
424 B
Bash
Executable file
19 lines
424 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if test $# != 1
|
|
then
|
|
echo "Next version missing"
|
|
exit
|
|
fi
|
|
|
|
NEXT=$1
|
|
|
|
echo "Updating version to $NEXT..."
|
|
SET_VERSION="mvn versions:set -DnewVersion=$NEXT -DgenerateBackupPoms=false -pl"
|
|
$SET_VERSION .
|
|
$SET_VERSION builder
|
|
$SET_VERSION tile
|
|
$SET_VERSION ruleset
|
|
echo "Updating README template..."
|
|
perl -p -i -e "s,DEV-SNAPSHOT</,$NEXT</," builder/src/main/resources/README-template.md
|
|
echo "Done."
|