File: post-release-version-bump

package info (click to toggle)
lintian 2.129.0
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 71,680 kB
  • sloc: perl: 46,081; javascript: 9,151; makefile: 4,058; sh: 3,044; ansic: 714; xml: 518; python: 91; java: 15; cpp: 9; tcl: 4; lisp: 3
file content (15 lines) | stat: -rwxr-xr-x 484 bytes parent folder | download | duplicates (4)
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"