Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2014-05-21 18:15:16 +0000
committerMatthias Sohn2014-05-21 18:15:16 +0000
commitec67e4cce4d867d26817e2aa613077a81b016d77 (patch)
treec7a7332d1d81d5f8e6c31d31e49f9d01d38ab9d3
parent1a0871d98d91ecf94e5edeafcd5761cda68f6374 (diff)
downloadegit-github-ec67e4cce4d867d26817e2aa613077a81b016d77.tar.gz
egit-github-ec67e4cce4d867d26817e2aa613077a81b016d77.tar.xz
egit-github-ec67e4cce4d867d26817e2aa613077a81b016d77.zip
Add script to release EGit Mylyn Github connector
Change-Id: Ia1289debf802fac7ff3ea57943e2267e68f1fd45 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rwxr-xr-xtools/release.sh51
1 files changed, 51 insertions, 0 deletions
diff --git a/tools/release.sh b/tools/release.sh
new file mode 100755
index 00000000..5444045a
--- /dev/null
+++ b/tools/release.sh
@@ -0,0 +1,51 @@
+#!/bin/bash
+#
+# script to create a jgit release
+
+# uncomment to switch on trace
+#set -x
+
+# abort if a command hits an error
+set -e
+
+export basePath=$(cd "$(dirname "$0")"; pwd)
+echo basePath $basePath
+
+if [ -z $1 ]; then
+ echo "
+ Usage:
+ $ release.sh <release version tag>
+
+ e.g. release.sh v3.4.0.201405051725-m7
+"
+ exit
+fi
+
+# trimmed git status
+export status=$(git status --porcelain)
+
+if [ ! -z "$status" ];
+then
+ echo "
+ working tree is dirty -> can't create release
+"
+ exit
+fi
+
+MSG="EGit Mylyn Github Connector $1"
+
+# tag release
+git tag -s -m "$MSG" $1
+
+# update version numbers
+./tools/version.sh --release
+
+# commit changed version numbers
+git commit -a -s -m "$MSG"
+
+# move the tag to the version we release
+git tag -sf -m "$MSG" $1
+
+# run the build
+mvn clean install
+

Back to the top