[Pkg-xfce-commits] r1523 - scripts/pbuilder-stable
corsac at alioth.debian.org
corsac at alioth.debian.org
Fri Jan 4 09:27:01 UTC 2008
Author: corsac
Date: 2008-01-04 09:27:01 +0000 (Fri, 04 Jan 2008)
New Revision: 1523
Modified:
scripts/pbuilder-stable/pdebuild-sources.sh
Log:
enable building multiple packages
Modified: scripts/pbuilder-stable/pdebuild-sources.sh
===================================================================
--- scripts/pbuilder-stable/pdebuild-sources.sh 2008-01-04 09:26:44 UTC (rev 1522)
+++ scripts/pbuilder-stable/pdebuild-sources.sh 2008-01-04 09:27:01 UTC (rev 1523)
@@ -25,7 +25,8 @@
SCRIPTSDIR=$BASEDIR/scripts
BUILDING=$1
-PACKAGE=$2
+shift
+PACKAGES=$@
case $BUILDING in
"desktop")
@@ -108,13 +109,17 @@
2> $PBUILDERDIR/log/pbuilder-create-errors.log
fi
-if [ -z "$PACKAGE" ]; then
+if [ -z "$PACKAGES" ]; then
# Build every package listed in $PKGFILE (avoiding comments)
for pkg in $(grep -v "^#" $PKGFILE | cut -f 1 -d " "); do
build $pkg
done
else
# Build the package specified on the command line
- build "$PACKAGE"
+ echo "$PACKAGES"
+ for pkg in $PACKAGES;
+ do
+ build $pkg
+ done
fi
More information about the Pkg-xfce-commits
mailing list