Skip to content

Commit

Permalink
adding bumpver_isis.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
danhaywood committed Nov 10, 2015
1 parent e6ac933 commit 4524eb7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bumpver_isis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
VERSION=$1

if [ ! "$VERSION" ]; then
echo "usage: $(basename $0) [version]"
exit 1
fi

# edit parent pom.xml
echo "editing parent pom.xml"
cat pom.xml | sed "s/<isis.version>.*</<isis.version>$VERSION</" > pom.xml.$$.sed
mv pom.xml.$$.sed pom.xml

# edit cpt's pom.xml
echo "editing cpt's pom.xml"
pushd cpt >/dev/null
cat pom.xml | sed "s/<isis.version>.*</<isis.version>$VERSION</" > pom.xml.$$.sed
mv pom.xml.$$.sed pom.xml
popd >/dev/null

echo "Committing changes"
git commit -am "bumping isis.version to $VERSION"

0 comments on commit 4524eb7

Please sign in to comment.