]> git.proxmox.com Git - mirror_spl-debian.git/blame - debian/debuild-ppa.sh
Disable Ubuntu 11.04 Natty Narwhal builds.
[mirror_spl-debian.git] / debian / debuild-ppa.sh
CommitLineData
5491ef3b
DH
1#!/bin/bash
2#
3# Launchpad PPA build helper.
4#
5
6PPA_USER=${PPA_USER:-$(whoami)}
cdb5c632 7PPA_NAME='spl'
4855e3e9 8PPA_DISTRIBUTION_LIST='lucid oneiric precise quantal'
cdb5c632 9PPA_GENCHANGES='-sa'
5491ef3b
DH
10
11if [ ! -d debian/ ]
12then
13 echo 'Error: The debian/ directory is not in the current working path.'
14 exit 1
15fi
16
17for ii in $PPA_DISTRIBUTION_LIST
18do
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
cdb5c632 25 debuild -S "$PPA_GENCHANGES"
5491ef3b 26 git checkout debian/changelog
cdb5c632
DH
27
28 # Only do a full upload on the first build.
29 PPA_GENCHANGES='-sd'
5491ef3b 30done