Skip to content

Commit

Permalink
minor version handling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dickschoeller committed May 31, 2017
1 parent 6b545b6 commit 937a062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/release.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash

# Announce the current version. Get the next
development_version=$(grep SNAPSHOT pom.xml | sed -e 's/.*[<]version[>]//' -e 's@[<]/version[>]@@')
development_version=$(grep '[<]version[>].*SNAPSHOT' pom.xml | head -n 1 | sed -e 's/.*[<]version[>]//' -e 's@[<]/version[>]@@')
release_version=$(echo $development_version | sed -e 's/-SNAPSHOT//');
echo "Current development version is: $development_version"
echo "Release version will be $release_version"
read -p "Enter next release target: " next_target
new_development_version=${next_target}-SNAPSHOT
echo "New development version will be $new_development_version"

# Merge to master
git checkout master
Expand Down

0 comments on commit 937a062

Please sign in to comment.