Repository: isis
Updated Branches:
  refs/heads/master 67f66214c -> baaa85394


ISIS-1465: adding interim-release.sh


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/c29f846a
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/c29f846a
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/c29f846a

Branch: refs/heads/master
Commit: c29f846acf3c146fb52b04079f2bec0fe8eeab75
Parents: 67f6621
Author: Dan Haywood <d...@haywood-associates.co.uk>
Authored: Thu Sep 8 01:13:47 2016 +0200
Committer: Dan Haywood <d...@haywood-associates.co.uk>
Committed: Fri Sep 9 00:51:25 2016 +0200

----------------------------------------------------------------------
 interim-release.sh | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/c29f846a/interim-release.sh
----------------------------------------------------------------------
diff --git a/interim-release.sh b/interim-release.sh
new file mode 100644
index 0000000..ea2231b
--- /dev/null
+++ b/interim-release.sh
@@ -0,0 +1,26 @@
+VERSION_BASE=$1
+
+if [ ! "$VERSION_BASE" ]; then
+    echo "usage: $(basename $0) [base version]"
+    echo "   eg: $(basename $0) 1.13.0"
+    exit 1
+fi
+
+DATE=`date +'%Y%m%d-%H%M'`
+
+VERSION="$VERSION_BASE.$DATE"
+BRANCH="interim/$VERSION"
+TAG="isis-$VERSION"
+
+git checkout -b "$BRANCH"
+
+echo "updating version in all pom.xml files..."
+pushd core >/dev/null
+mvn versions:set -DnewVersion=$VERSION > /dev/null
+popd >/dev/null
+
+echo "Committing changes"
+git commit -am "bumping to $VERSION"
+
+echo "tagging"
+git tag $TAG

Reply via email to