]> 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'
9
10 if [ ! -d debian/ ]
11 then
12 echo 'Error: The debian/ directory is not in the current working path.'
13 exit 1
14 fi
15
16 for ii in $PPA_DISTRIBUTION_LIST
17 do
18 # Change the first line of the debian/changelog file
19 # from: MyPackage (1.2.3-4) unstable; urgency=low
20 # to: MyPackage (1.2.3-4~distname) distname; urgency=low
21 debchange --local="~$ii" --distribution="$ii" dummy
22 sed -i -e '2,8d' debian/changelog
23
24 debuild -S -sd
25 git checkout debian/changelog
26 done