diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-01-06 22:23:47 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-01-06 22:23:47 +0000 |
commit | 95a34531b6aa61dabdd8a532c77a8fc7df7b483c (patch) | |
tree | f67f344c11f1eab96bd7d724dc1bca70470d7b18 | |
parent | affea8dbc825e39a543809e9d747804c979c3376 (diff) |
Support building for multiple pools.
-rwxr-xr-x | localpbuilder-update | 6 | ||||
-rwxr-xr-x | localpdebuild | 12 |
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 |