3 export DEBFULLNAME="`git config --get user.name`"
4 export DEBEMAIL="`git config --get user.email`"
6 BRANCH=`git rev-parse --abbrev-ref HEAD`
7 FLAVOR="`dpkg-parsechangelog --show-field Distribution`"
8 LASTVER=`dpkg-parsechangelog --show-field Version`
10 if [ -z "$NEWVER" ]; then
11 echo "Specify the new version tag (old is $LASTVER)" >&2
15 echo "new version $NEWVER, changes from $LASTVER on branch $BRANCH"
17 gbp dch -s "$BRANCH" -D "$FLAVOR" -N "$NEWVER" -c --debian-branch="$BRANCH" --since="$LASTVER"
19 echo "Automatic update of debian/changelog failed"
24 echo "debian/changelog has been modified. Verify before \"git push\"!"
25 echo "Don't forget to check / push tags"