summaryrefslogtreecommitdiffstats
path: root/private/post-release-version-bump
diff options
context:
space:
mode:
Diffstat (limited to 'private/post-release-version-bump')
-rwxr-xr-xprivate/post-release-version-bump15
1 files changed, 15 insertions, 0 deletions
diff --git a/private/post-release-version-bump b/private/post-release-version-bump
new file mode 100755
index 0000000..1f5556a
--- /dev/null
+++ b/private/post-release-version-bump
@@ -0,0 +1,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"