diff options
-rwxr-xr-x | localcowbuilder-create | 20 | ||||
-rwxr-xr-x | localcowbuilder-login | 16 | ||||
-rwxr-xr-x | localcowbuilder-update | 16 |
3 files changed, 41 insertions, 11 deletions
diff --git a/localcowbuilder-create b/localcowbuilder-create index 90f9d89..896447f 100755 --- a/localcowbuilder-create +++ b/localcowbuilder-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/localcowbuilder-login b/localcowbuilder-login index 2074f2c..b08dc33 100755 --- a/localcowbuilder-login +++ b/localcowbuilder-login @@ -1,9 +1,19 @@ #!/bin/sh +set -e + +PRG=$(basename "$0") + +function showhelp() { + cat <<EOF +Usage: $PRG POOL [cowbuilderopts] + +Example: $PRG sarge_with_hacks +EOF +} + if [ $# -eq 0 ]; then - echo "Usage: $(basename $0) POOL [cowbuilderopts]" - echo "" - echo "Example: $(basename $0) sarge_with_hacks" + showhelp exit 1 fi diff --git a/localcowbuilder-update b/localcowbuilder-update index 6831473..b3cedcb 100755 --- a/localcowbuilder-update +++ b/localcowbuilder-update @@ -1,9 +1,19 @@ #!/bin/sh +set -e + +PRG=$(basename "$0") + +function showhelp() { + cat <<EOF +Usage: $(basename $0) POOL + +Example: $(basename $0) 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 |