]>
Commit | Line | Data |
---|---|---|
5491ef3b DH |
1 | #!/bin/bash |
2 | # | |
3 | # Launchpad PPA build helper. | |
4 | # | |
5 | ||
6 | PPA_USER=${PPA_USER:-$(whoami)} | |
cdb5c632 | 7 | PPA_NAME='spl' |
4855e3e9 | 8 | PPA_DISTRIBUTION_LIST='lucid oneiric precise quantal' |
cdb5c632 | 9 | PPA_GENCHANGES='-sa' |
5491ef3b DH |
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 | ||
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 | 30 | done |