summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalpbuilder-update6
-rwxr-xr-xlocalpdebuild12
2 files changed, 9 insertions, 9 deletions
diff --git a/localpbuilder-update b/localpbuilder-update
index 32a7c82..163f993 100755
--- a/localpbuilder-update
+++ b/localpbuilder-update
@@ -7,9 +7,9 @@ if [ $# -eq 0 ]; then
exit 1
fi
-pool=$1
-
-sudo pbuilder update \
+for pool in $@; do
+ sudo pbuilder update \
--basetgz /var/cache/pbuilder/base-$pool.tgz \
--buildplace /var/cache/pbuilder/build-$pool/ \
--aptcache /var/cache/pbuilder/aptcache-$pool/
+done
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