summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalpbuilder-create11
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"}