summaryrefslogtreecommitdiff
path: root/localpdebuild
diff options
context:
space:
mode:
Diffstat (limited to 'localpdebuild')
-rwxr-xr-xlocalpdebuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/localpdebuild b/localpdebuild
index 869ddf2..6181e84 100755
--- a/localpdebuild
+++ b/localpdebuild
@@ -13,8 +13,7 @@ if [ $# -eq 0 ]; then
exit 1
fi
-pool=$1; shift
-
+pools=''
pbuilderopts=''
pdebuildopts=''
debbuildopts=''
@@ -38,15 +37,15 @@ while [ $# -gt 0 ]; do
shift
;;
*)
- echo "ERROR: Unknown argument \"$1\"!" &>2
- showhelp
- exit 1
+ pools="$pools $1"
+ shift
;;
esac
done
pbuilderopts="$pbuilderopts $@"
-pdebuild \
+for pool in $pools; do
+ pdebuild \
--buildresult $HOME/src/pbuild-$pool/ \
${debbuildopts:+--debbuildopts $debbuildopts} \
$pdebuildopts \
@@ -55,3 +54,4 @@ pdebuild \
--buildplace /var/cache/pbuilder/build-$pool/ \
--aptcache /var/cache/pbuilder/aptcache-$pool/ \
$pbuilderopts
+done