~ubuntu-branches/debian/wheezy/byobu/wheezy

« back to all changes in this revision

Viewing changes to debian/release-build.sh

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Kern
  • Date: 2010-06-28 18:04:16 UTC
  • mfrom: (0.5.1 upstream) (0.3.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100628180416-3xgfpga8cvp872ye
Upload to Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
 
3
3
PKG="byobu"
4
 
MAJOR=2
5
4
 
6
5
error() {
7
6
        echo "ERROR: $@"
10
9
 
11
10
head -n1 debian/changelog | grep "unreleased" || error "This version must be 'unreleased'"
12
11
 
13
 
./debian/rules release-upstream
 
12
./debian/rules get-orig-source
 
13
if tar -tvf ../byobu_*.orig.tar.gz | egrep "bzr|debian"; then
 
14
        echo "ERROR: release tarball has invalid files"
 
15
        exit 1
 
16
fi
 
17
if tar -tvf ../byobu_*.orig.tar.gz | egrep "/bin/|/lib/" | grep -v "rwxr-xr-x"; then
 
18
        echo "ERROR: release tarball has binaries with incorrect permissions"
 
19
        exit 1
 
20
fi
 
21
 
14
22
bzr bd
15
23
sed -i "s/) unreleased;/-0ubuntu1~ppa1) hardy;/" debian/changelog
16
24
bzr bd -S
18
26
bzr bd -S
19
27
sed -i "s/ppa2) intrepid;/ppa3) jaunty;/" debian/changelog
20
28
bzr bd -S
21
 
sed -i "s/~ppa3) jaunty;/) karmic;/" debian/changelog
 
29
sed -i "s/ppa3) jaunty;/ppa4) karmic;/" debian/changelog
 
30
bzr bd -S
 
31
sed -i "s/~ppa4) karmic;/) lucid;/" debian/changelog
22
32
bzr bd -S
23
33
 
24
34
echo
25
35
echo
26
36
echo "# Test this build:"
27
 
echo "  sudo dpkg -i ../*.deb"
 
37
echo "  sudo dpkg -Oi ../byobu_*.deb"
28
38
echo
29
39
echo "# If everything looks good, release:"
30
40
echo "  ./debian/release.sh"