From d36a30c985272deb4371239e194df7c6b80645d7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 31 May 2011 13:02:00 +0200 Subject: [PATCH] id-pbuild.sh: new option --product The product option can be used if the Debian package is different from the product name on our download area. For example php5-yaz is called phpyaz, idzebra-2.0 is called zebra. --- id-deb-build/id-pbuild.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index f03c1ef..f45cbde 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -12,6 +12,7 @@ Options: [--ubuntu=distros] [--upload] [--concurrency=N] + [--product=X] EOF exit $1 } @@ -31,17 +32,20 @@ while test $# -gt 0; do esac case $1 in + --debian=*) + DEBIAN_DIST=$optarg + ;; --ubuntu=*) UBUNTU_DIST=$optarg ;; - --debian=*) - DEBIAN_DIST=$optarg + --upload) + upload=true ;; --concurrency=*) concurrency=$optarg ;; - --upload) - upload=true + --product=*) + PRODUCT=$optarg ;; --remote=*) REMOTE=$optarg @@ -92,7 +96,9 @@ if test ! -e "$PKG"; then exit 1 fi PBUILDER=/usr/sbin/pbuilder -PRODUCT=`echo *.dsc|sed 's/_.*//g'` +if test -z "$PRODUCT"; then + PRODUCT=`echo *.dsc|sed 's/_.*//g'` +fi ARCHS="i386 amd64" if grep "Architecture: all" $PKG >/dev/null; then USE_ARCHS=i386 -- 1.7.10.4