diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-04-17 16:40:30 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-04-17 16:40:30 +0000 |
commit | 85379480b4669d324aa039a9f77783c016de6d1d (patch) | |
tree | 9f5a67048bcd07eae0f5573b5579c23d54399fe7 /localpbuilder-create | |
parent | 2f3697fe40d4310f111b0ce6098584dff519053d (diff) |
Fix handling OTHERMIRROR.
Diffstat (limited to 'localpbuilder-create')
-rwxr-xr-x | localpbuilder-create | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/localpbuilder-create b/localpbuilder-create index 4b8ff1a..d86a171 100755 --- a/localpbuilder-create +++ b/localpbuilder-create @@ -1,15 +1,16 @@ -#!/bin/sh +#!/bin/sh -x if [ $# -eq 0 ]; then - echo "Usage: $(basename $0) POOL [ DISTRIBUTION [ OTHERMIRROR ] ]" + echo "Usage: $(basename $0) POOL [ DISTRIBUTION [ OTHERMIRROR] ]" echo "" - echo "Example: $(basename $0) sarge_with_hacks sarge" + echo "Examples:" + echo " $(basename $0) sarge" + echo " $(basename $0) sarge+hacks sarge 'deb http://example.com/ sarge hacks'" exit 1 fi pool=$1 distro=${2:-$pool} -othermirror=${3:+--othermirror $3} sudo pbuilder create \ --buildresult $HOME/src/pbuild-$pool/ \ @@ -17,4 +18,4 @@ sudo pbuilder create \ --basetgz /var/cache/pbuilder/base-$pool.tgz \ --buildplace /var/cache/pbuilder/build-$pool/ \ --aptcache /var/cache/pbuilder/aptcache-$pool/ \ - $othermirror + ${3:+--othermirror "$3"} |