Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 18 lines (16 sloc) 340 Bytes
#!/usr/bin/env bash
if [ $# -lt 1 ]; then
echo "$0 <to>"
exit 1
fi
ver=$1
function updateVersion {
sed -i -e "s/<!--VERSION-->.*\?<!--VERSION-->/<!--VERSION-->$ver<!--VERSION-->/g" $1
}
files=(*/pom.xml pom.xml)
for f in "${files[@]}"; do
updateVersion $f
done
if [[ "$ver" != *-SNAPSHOT ]]; then
updateVersion README.md
fi