summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalpbuilder-create20
-rwxr-xr-xlocalpbuilder-login16
-rwxr-xr-xlocalpbuilder-update16
3 files changed, 41 insertions, 11 deletions
diff --git a/localpbuilder-create b/localpbuilder-create
index 97fc6d8..944d451 100755
--- a/localpbuilder-create
+++ b/localpbuilder-create
@@ -1,11 +1,21 @@
#!/bin/sh
+set -e
+
+PRG=$(basename "$0")
+
+function showhelp() {
+ cat <<EOF
+Usage: $PRG POOL [ DISTRIBUTION [ OTHERMIRROR] ]
+
+Examples:
+ $PRG sarge
+ $PRG sarge+hacks sarge 'deb http://example.com/ sarge hacks'
+EOF
+}
+
if [ $# -eq 0 ]; then
- echo "Usage: $(basename $0) POOL [ DISTRIBUTION [ OTHERMIRROR] ]"
- echo ""
- echo "Examples:"
- echo " $(basename $0) sarge"
- echo " $(basename $0) sarge+hacks sarge 'deb http://example.com/ sarge hacks'"
+ showhelp
exit 1
fi
diff --git a/localpbuilder-login b/localpbuilder-login
index a41f368..33d70f2 100755
--- a/localpbuilder-login
+++ b/localpbuilder-login
@@ -1,9 +1,19 @@
#!/bin/sh
+set -e
+
+PRG=$(basename "$0")
+
+function showhelp() {
+ cat <<EOF
+Usage: $PRG POOL [pbuilderopts]
+
+Example: $PRG sarge_with_hacks
+EOF
+}
+
if [ $# -eq 0 ]; then
- echo "Usage: $(basename $0) POOL [pbuilderopts]"
- echo ""
- echo "Example: $(basename $0) sarge_with_hacks"
+ showhelp
exit 1
fi
diff --git a/localpbuilder-update b/localpbuilder-update
index 163f993..9496ab7 100755
--- a/localpbuilder-update
+++ b/localpbuilder-update
@@ -1,9 +1,19 @@
#!/bin/sh
+set -e
+
+PRG=$(basename "$0")
+
+function showhelp() {
+ cat <<EOF
+Usage: $PRG POOL
+
+Example: $PRG sarge_with_hacks
+EOF
+}
+
if [ $# -eq 0 ]; then
- echo "Usage: $(basename $0) POOL"
- echo ""
- echo "Example: $(basename $0) sarge_with_hacks"
+ showhelp
exit 1
fi