use modern '--help' & '--version' output
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 5 Jan 2004 21:56:50 +0000 (21:56 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 5 Jan 2004 21:56:50 +0000 (21:56 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@540 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vapt-get
util-vserver/scripts/vrpm

index 0f3b4fb..b4c0b5d 100755 (executable)
@@ -24,27 +24,25 @@ test -e "$UTIL_VSERVER_VARS" || {
 . "$UTIL_VSERVER_VARS"
 . "$_LIB_FUNCTIONS"
 
+
 function showHelp()
 {
-    cat <<EOF
-Usage: $0 <vserver-name>* [--all] -- <params>+
-
-Report bugs to <$PACKAGE_BUGREPORT>.
-EOF
+    echo \
+$"Usage: $0 <vserver-name>* [--all] -- <params>+
 
+Report bugs to <$PACKAGE_BUGREPORT>."
     exit $1
 }
 
 function showVersion()
 {
-    cat <<EOF 
-vapt-get $PACKAGE_VERSION -- apt-get for vservers
+    echo \
+$"vapt-get $PACKAGE_VERSION -- apt-get for vservers
 This program is part of $PACKAGE_STRING
 
 Copyright (C) 2003 Enrico Scholz
 This program is free software; you may redistribute it under the terms of
-the GNU General Public License.  This program has absolutely no warranty.
-EOF
+the GNU General Public License.  This program has absolutely no warranty."
     exit $1
 }
 
index b5ff107..a49d750 100755 (executable)
@@ -26,18 +26,24 @@ test -e "$UTIL_VSERVER_VARS" || {
 
 function showHelp()
 {
-    echo "Usage: $0 <vserver-name>* [--all] [--help] [--version] [--unify] -- <rpm-params>+"
+    echo \
+$"Usage: $0 <vserver-name>* [--all] [--help] [--version] [--unify] -- <rpm-params>+
+
+Report bugs to <$PACKAGE_BUGREPORT>."
+
     exit $1
 }
 
 function showVersion()
 {
-    cat <<EOF 
-vrpm 0.23.5 -- rpm for vservers
+    echo \
+$"vrpm $PACKAGE_VERSION -- rpm for vservers
+This program is part of $PACKAGE_STRING
+
 Copyright (C) 2003 Enrico Scholz
 This program is free software; you may redistribute it under the terms of
-the GNU General Public License.  This program has absolutely no warranty.
-EOF
+the GNU General Public License.  This program has absolutely no warranty."
+    
     exit $1
 }