aboutsummaryrefslogtreecommitdiff
path: root/files/bin/pull-and-release
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2014-08-23 17:31:41 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2014-08-23 17:31:41 +0200
commit5b1cc7e49adeb7c6060f04fda0a667e3e17809ab (patch)
tree0d686367329a97992f9a80d9a960c75890d1e68a /files/bin/pull-and-release
downloadfiken-ansible-5b1cc7e49adeb7c6060f04fda0a667e3e17809ab.tar.gz
fiken-ansible-5b1cc7e49adeb7c6060f04fda0a667e3e17809ab.tar.bz2
fiken-ansible-5b1cc7e49adeb7c6060f04fda0a667e3e17809ab.tar.xz
fiken-ansible-5b1cc7e49adeb7c6060f04fda0a667e3e17809ab.zip
wip
Diffstat (limited to 'files/bin/pull-and-release')
-rw-r--r--files/bin/pull-and-release20
1 files changed, 20 insertions, 0 deletions
diff --git a/files/bin/pull-and-release b/files/bin/pull-and-release
new file mode 100644
index 0000000..3d18437
--- /dev/null
+++ b/files/bin/pull-and-release
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+set -x
+
+git fetch
+
+now=$(date +%Y.%m)
+count=$(git tag|grep -- -$now.|wc -l)
+
+echo "Does $now.$count look like a good release version? If not, abort now."
+read
+
+git reset --hard
+git checkout master
+git merge --ff origin/master
+git merge --no-ff origin/develop
+
+git push origin master
+
+mvn clean release:clean release:prepare release:perform -B -Papp -DdevelopmentVersion=master-SNAPSHOT -DreleaseVersion=$now.$count