diff --git a/support/launchpad-ppa b/support/launchpad-ppa index fa4cd352..1528fd38 100755 --- a/support/launchpad-ppa +++ b/support/launchpad-ppa @@ -5,10 +5,14 @@ # environment variables # +# CMD +CMD=$(basename $0) +echo $CMD + # Configuration TVH_ROOT=$(cd $(dirname $0)/..; pwd) -TVH_DIST="lucid natty oneiric precise" -TVH_ARCH="i386 amd64" +[ -z "$TVH_DIST" ] && TVH_DIST="lucid natty oneiric precise wheezy" +[ -z "$TVH_ARCH" ] && TVH_ARCH="i386 amd64" # Options [ ! -z "$1" ] && REL=$1 || REL=master @@ -38,8 +42,18 @@ for d in $TVH_DIST; do # Build source package dpkg-buildpackage -I.git* -S -sgpg -pgpg || exit 1 + # Build + if [ "$CMD" == "pbuilder" ]; then + + for a in $TVH_ARCH; do + pbuilder-dist $d $a ../tvheadend_${V}.dsc + done + # Upload - dput tvh-$PPA ../tvheadend_${V}_source.changes || exit 1 + else + dput tvh-$PPA ../tvheadend_${V}_source.changes || exit 1 + fi + done # Cleanup diff --git a/support/pbuilder b/support/pbuilder new file mode 120000 index 00000000..5cd9a3a8 --- /dev/null +++ b/support/pbuilder @@ -0,0 +1 @@ +launchpad-ppa \ No newline at end of file