Skip to content

Commit

Permalink
refactor out getting the current release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Osheroff committed Nov 25, 2015
1 parent 562ee96 commit ff7ffaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/bump
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ then
echo "Usage: $0 VERSION" && exit 0
fi

CURRENT_REV=`grep '<version>' pom.xml | head -n1 | perl -ne '/([\d\.]+)/; print $1'`
DIR=`dirname $0`
cd $DIR/..

CURRENT_REV=`build/current_rev`

if [ "$CURRENT_REV" == "" ]
then
Expand Down
4 changes: 4 additions & 0 deletions build/current_rev
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

POM=`dirname $0`/../pom.xml
grep '<version>' $POM | head -n1 | perl -ne '/([\d\.]+)/; print $1'

0 comments on commit ff7ffaa

Please sign in to comment.