diff options
Diffstat (limited to 'localpbuilder-login')
-rwxr-xr-x | localpbuilder-login | 16 |
1 files changed, 13 insertions, 3 deletions
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 |