summaryrefslogtreecommitdiff
path: root/localpdebuild
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-01-06 22:23:47 +0000
committerJonas Smedegaard <dr@jones.dk>2006-01-06 22:23:47 +0000
commit95a34531b6aa61dabdd8a532c77a8fc7df7b483c (patch)
treef67f344c11f1eab96bd7d724dc1bca70470d7b18 /localpdebuild
parentaffea8dbc825e39a543809e9d747804c979c3376 (diff)
Support building for multiple pools.
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