~ubuntu-branches/ubuntu/lucid/testdrive/lucid

« back to all changes in this revision

Viewing changes to debian/release.sh

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-11-17 15:29:50 UTC
  • Revision ID: james.westby@ubuntu.com-20091117152950-uf7h6qapb53up75l
Tags: upstream-1.13
ImportĀ upstreamĀ versionĀ 1.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
PKG="testdrive"
 
4
MAJOR=1
 
5
 
 
6
error() {
 
7
        echo "ERROR: $@"
 
8
        exit 1
 
9
}
 
10
 
 
11
head -n1 debian/changelog | grep "lucid" || error "This version must be ready for 'lucid'"
 
12
 
 
13
# Tag the release in bzr
 
14
minor=`head -n1 debian/changelog | sed "s/^.*($MAJOR.//" | sed "s/-.*$//"`
 
15
dch --release
 
16
debcommit --release --message="releasing $MAJOR.$minor"
 
17
 
 
18
# Sign the tarball
 
19
gpg --armor --sign --detach-sig ../"$PKG"_*.orig.tar.gz
 
20
 
 
21
# Open the next release for development
 
22
nextminor=`expr $minor + 1`
 
23
dch -v "$MAJOR.$nextminor" "UNRELEASED"
 
24
sed -i "s/$MAJOR.$nextminor) .*;/$MAJOR.$nextminor) unreleased;/" debian/changelog
 
25
bzr commit -m "opening $MAJOR.$nextminor"
 
26
 
 
27
echo
 
28
echo "# To push:"
 
29
echo "  bzr push lp:$PKG"
 
30
echo
 
31
echo "# To upload:"
 
32
echo "  dput $PKG-ppa ../*ppa*changes"
 
33
echo "  dput ../${PKG}_${MAJOR}.${minor}-0ubuntu1_source.changes"
 
34
echo
 
35
echo "# Publish tarball at:"
 
36
echo "  https://launchpad.net/$PKG/trunk/+addrelease"
 
37
echo
 
38
echo