diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-01-13 18:41:51 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-01-13 18:41:51 +0000 |
commit | a65aa208f41eccf56b0d9e12f67f0f8efbd68715 (patch) | |
tree | a9a288764726c7a048a4b29bf09da620f981bc3f /localpdebuild | |
parent | b776d8e9b9915253861496a48591459b6e5732ac (diff) |
Generalize $PRG. Use 'cat <<EOF' construct in showhelp function.
Diffstat (limited to 'localpdebuild')
-rwxr-xr-x | localpdebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/localpdebuild b/localpdebuild index 733cbb4..f62bf0f 100755 --- a/localpdebuild +++ b/localpdebuild @@ -2,10 +2,14 @@ set -e +PRG=$(basename "$0") + function showhelp() { - echo "Usage: $(basename $0) POOL [debbuildopts] [-- pbuilderopts]" - echo "" - echo "Example: $(basename $0) sarge_with_hacks -B" + cat <<EOF +Usage: $PRG POOL [debbuildopts] [-- pbuilderopts] + +Example: $PRG sarge_with_hacks -B +EOF } if [ $# -eq 0 ]; then |