summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-08-30 15:57:11 +0000
committerJonas Smedegaard <dr@jones.dk>2006-08-30 15:57:11 +0000
commitc7974ef8c68efa45b82d4a9ddad60903f66d11f7 (patch)
treedbe47d832ed85d2286c9d34303b595974e7977a1
parent934e08e54d22735ba1654cabfac45e42ac5554e6 (diff)
Define options before use. Quote used options.
-rwxr-xr-xlocalpbuilder-create13
1 files changed, 9 insertions, 4 deletions
diff --git a/localpbuilder-create b/localpbuilder-create
index 60ba340..97fc6d8 100755
--- a/localpbuilder-create
+++ b/localpbuilder-create
@@ -12,10 +12,15 @@ fi
pool=$1
distro=${2:-$pool}
+basetgz="/var/cache/pbuilder/base-$pool.tgz"
+buildplace="/var/cache/pbuilder/build-$pool/"
+aptcache="/var/cache/pbuilder/aptcache-$pool/"
+buildresult="$HOME/src/pbuild-$pool/"
+
sudo pbuilder create \
- --buildresult $HOME/src/pbuild-$pool/ \
+ --buildresult "$buildresult" \
--distribution "$distro" \
- --basetgz /var/cache/pbuilder/base-$pool.tgz \
- --buildplace /var/cache/pbuilder/build-$pool/ \
- --aptcache /var/cache/pbuilder/aptcache-$pool/ \
+ --basetgz "$basetgz" \
+ --buildplace "$buildplace" \
+ --aptcache "$aptcache" \
${3:+--othermirror "$3"}