]> www.average.org Git - loctrkd.git/blob - make-release
Update changelog for 2.00 release
[loctrkd.git] / make-release
1 #!/bin/sh
2
3 export DEBFULLNAME="`git config --get user.name`"
4 export DEBEMAIL="`git config --get user.email`"
5
6 BRANCH=`git rev-parse --abbrev-ref HEAD`
7 FLAVOR="`dpkg-parsechangelog --show-field Distribution`"
8 LASTVER=`dpkg-parsechangelog --show-field Version`
9 NEWVER=$1
10 if [ -z "$NEWVER" ]; then
11         echo "Specify the new version tag (old is $LASTVER)" >&2
12         exit 1
13 fi
14
15 echo "new version $NEWVER, changes from $LASTVER on branch $BRANCH"
16
17 gbp dch -s "$BRANCH" -D "$FLAVOR" -N "$NEWVER" -c --debian-branch="$BRANCH" --since="$LASTVER"
18 if [ $? -ne 0 ]; then
19         echo "Automatic update of debian/changelog failed"
20         exit 1
21 fi
22 git tag "$NEWVER"
23
24 echo "debian/changelog has been modified. Verify before \"git push\"!"
25 echo "Don't forget to check / push tags"