-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6ac933
commit 4524eb7
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|