]> git.proxmox.com Git - mirror_zfs-debian.git/blob - debian/debuild-ppa.sh
Merge branch 'upstream'
[mirror_zfs-debian.git] / debian / debuild-ppa.sh
1 #!/bin/bash
2 #
3 # Launchpad PPA build helper.
4 #
5
6 PPA_USER=${PPA_USER:-$(whoami)}
7 PPA_NAME='zfs'
8 PPA_DISTRIBUTION_LIST='lucid maverick natty oneiric'
9 PPA_GENCHANGES='-sa'
10
11 if [ ! -d debian/ ]
12 then
13 echo 'Error: The debian/ directory is not in the current working path.'
14 exit 1
15 fi
16
17 for ii in $PPA_DISTRIBUTION_LIST
18 do
19 # Change the first line of the debian/changelog file
20 # from: MyPackage (1.2.3-4) unstable; urgency=low
21 # to: MyPackage (1.2.3-4~distname) distname; urgency=low
22 debchange --local="~$ii" --distribution="$ii" dummy
23 sed -i -e '2,8d' debian/changelog
24
25 debuild -S "$PPA_GENCHANGES"
26 git checkout debian/changelog
27
28 # Only do a full upload on the first build.
29 PPA_GENCHANGES='-sd'
30 done