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

« back to all changes in this revision

Viewing changes to debian/release-build.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 -i "unreleased" || error "This version must be 'unreleased'"
 
12
 
 
13
./debian/rules release-upstream
 
14
bzr bd
 
15
sed -i "s/) unreleased;/-0ubuntu1~ppa1) hardy;/i" debian/changelog
 
16
bzr bd -S
 
17
sed -i "s/ppa1) hardy;/ppa2) intrepid;/" debian/changelog
 
18
bzr bd -S
 
19
sed -i "s/ppa2) intrepid;/ppa3) jaunty;/" debian/changelog
 
20
bzr bd -S
 
21
sed -i "s/ppa3) jaunty;/ppa4) karmic;/" debian/changelog
 
22
bzr bd -S
 
23
sed -i "s/ppa4) karmic;/ppa5) lucid;/" debian/changelog
 
24
bzr bd -S
 
25
sed -i "s/~ppa5//" debian/changelog
 
26
bzr bd -S
 
27
 
 
28
echo
 
29
echo
 
30
echo "# Test this build:"
 
31
echo "  sudo dpkg -i ../*.deb"
 
32
echo
 
33
echo "# If everything looks good, release:"
 
34
echo "  ./debian/release.sh"
 
35
echo
 
36
echo