• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3set -e
4set -x
5
6cd `readlink -f "$0" | xargs dirname`
7git pull origin master
8dch --distribution testing --no-force-save-on-release --release "" -c ./Changelog
9VERSION=`dpkg-parsechangelog -l./Changelog -SVersion`
10TAG="v${VERSION}"
11CHANGESET=`dpkg-parsechangelog -l./Changelog -SChanges | sed '/^iowow.*/d' | sed '/^\s*$/d'`
12git add ./Changelog
13
14if ! git diff-index --quiet HEAD --; then
15  git commit -m"${TAG} landed"
16  git push origin master
17fi
18
19echo "${CHANGESET}" | git tag -f -a -F - "${TAG}"
20git push origin -f --tags
21
22