diff options
author | Anton Adamansky <adamansky@gmail.com> | 2015-06-01 14:57:01 +0600 |
---|---|---|
committer | Anton Adamansky <adamansky@gmail.com> | 2015-06-01 14:57:01 +0600 |
commit | 8d1734027efad6e8869e9228e17930d7e3c76ef9 (patch) | |
tree | 799a2e369af8ab441e14be1ce99dbac59b7d3cc9 | |
parent | 3d33b7e813f2ffaa79447136498e97683f26819c (diff) | |
download | ejdb-8d1734027efad6e8869e9228e17930d7e3c76ef9.tar.gz ejdb-8d1734027efad6e8869e9228e17930d7e3c76ef9.tar.bz2 ejdb-8d1734027efad6e8869e9228e17930d7e3c76ef9.zip |
Added release publisher script (release.sh)
-rwxr-xr-x[-rw-r--r--] | release.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/release.sh b/release.sh index e69de29..f447e12 100644..100755 --- a/release.sh +++ b/release.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e +set -x + +cd `readlink -f "$0" | xargs dirname` +git pull +dch --distribution testing --no-force-save-on-release --release "" -c ./Changelog +VERSION=`dpkg-parsechangelog -l./Changelog -SVersion` +TAG="v${VERSION}" +CHANGESET=`dpkg-parsechangelog -l./Changelog -SChanges | sed '/^ejdb.*/d' | sed '/^\s*$/d'` +git add ./Changelog + +if ! git diff-index --quiet HEAD --; then + git commit -m"${TAG} landed" + git push origin master +fi + +echo "${CHANGESET}" | git tag -f -a -F - "${TAG}" +git push -f --tags + |