strolch/setVersion.sh

16 lines
483 B
Bash
Raw Normal View History

2014-09-19 20:38:54 +02:00
#!/bin/bash
if [ "$#" != "1" ] ; then
echo "ERROR: Version missing or wrong arguments!"
exit 1
fi
2014-09-19 22:36:59 +02:00
if ! mvn -f pom.xml versions:set -DnewVersion="${1}" -DallowSnapshots=true -DgenerateBackupPoms=false ; then
echo "ERROR: Failed to change version in root!"
exit 1
fi
if ! mvn -f versioning_eitchnet_pom.xml versions:set -DnewVersion="${1}" -DallowSnapshots=true -DgenerateBackupPoms=false ; then
echo "ERROR: Failed to change version in submodule!"
exit 1
fi