diff options
Diffstat (limited to 'localcowbuilder-create')
-rwxr-xr-x | localcowbuilder-create | 20 |
1 files changed, 15 insertions, 5 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 |