Move db tools to a separate package and make them PIE
[platform/upstream/ejdb.git] / release.sh
1 #!/bin/sh
2
3 set -e
4 set -x
5
6 cd `readlink -f "$0" | xargs dirname`
7 git pull
8 dch --distribution testing --no-force-save-on-release --release "" -c ./Changelog
9 VERSION=`dpkg-parsechangelog -l./Changelog -SVersion`
10 TAG="v${VERSION}"
11 CHANGESET=`dpkg-parsechangelog -l./Changelog -SChanges | sed '/^ejdb.*/d' | sed '/^\s*$/d'`
12 git add ./Changelog
13
14 if ! git diff-index --quiet HEAD --; then
15   git commit -m"${TAG} landed"
16   git push origin master
17 fi
18
19 echo "${CHANGESET}" | git tag -f -a -F - "${TAG}"
20 git push -f --tags
21