summaryrefslogtreecommitdiffstats
path: root/private/post-release-version-bump
blob: 1f5556ae0ef00b03df1d439e5e70a53190c9272a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Post-release version bump script. Not really lintian-specific, but needed here.

set -e

if head -1 debian/changelog | grep -Fq 'UNRELEASED' ; then
    echo 'Most recent debian/changelog entry already sports an "UNRELEASED", doing nothing.'
    exit 1;
fi

dch --increment 'WIP (generated at release time: please do not add entries below.)'
sed -e '1 s/)/~git)/' -i debian/changelog
git add debian/changelog
git commit -m "Post-release version bump" -m "Gbp-Dch: Ignore"