summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-01-13 18:41:51 +0000
committerJonas Smedegaard <dr@jones.dk>2008-01-13 18:41:51 +0000
commita65aa208f41eccf56b0d9e12f67f0f8efbd68715 (patch)
treea9a288764726c7a048a4b29bf09da620f981bc3f
parentb776d8e9b9915253861496a48591459b6e5732ac (diff)
Generalize $PRG. Use 'cat <<EOF' construct in showhelp function.
-rwxr-xr-xlocalpdebuild10
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