diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-01-13 18:30:02 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-01-13 18:30:02 +0000 |
commit | e36b9a77b91450defa2ed8f302e7e86b1b0180c3 (patch) | |
tree | d80ee55fe6868bfcec46e76cf0a5bd9efc58b212 | |
parent | e553e6257a244e881100860bf1a87f7f8387e56e (diff) |
Generalize $PRG. Use 'cat <<EOF' construct in showhelp function.
-rwxr-xr-x | localcowdebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/localcowdebuild b/localcowdebuild index 84ae3cd..e1f18fe 100755 --- a/localcowdebuild +++ b/localcowdebuild @@ -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 |