Some support scripts.
This commit is contained in:
parent
459f06cf17
commit
aa5c84eb8c
2 changed files with 18 additions and 3 deletions
|
@ -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
|
||||
|
|
1
support/pbuilder
Symbolic link
1
support/pbuilder
Symbolic link
|
@ -0,0 +1 @@
|
|||
launchpad-ppa
|
Loading…
Add table
Reference in a new issue