From fce1e0cba56c8f1b7ea829f68fcbd77caa054dd1 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 18 Mar 2004 05:33:54 +0000 Subject: [PATCH] cleanups; use full parenthesis in case ... esac git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1301 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/scripts/vserver-build | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/util-vserver/scripts/vserver-build b/util-vserver/scripts/vserver-build index c2e30e3..29b4ca5 100755 --- a/util-vserver/scripts/vserver-build +++ b/util-vserver/scripts/vserver-build @@ -91,16 +91,16 @@ OPTION_FORCE= while true; do case "$1" in - --help) showHelp $0 ;; - --version) showVersion ;; - --force) OPTION_FORCE=1;; - --debug) set -x;; - --rootdir) ROOTDIR=$2; shift;; - --pkgbase) PKGCFGBASE=$2; shift;; - -m) method=$2; shift;; - -n) VSERVER_NAME=$2; shift;; - --) shift; break;; - *) + (--help) showHelp $0 ;; + (--version) showVersion ;; + (--force) OPTION_FORCE=1;; + (--debug) set -x;; + (--rootdir) ROOTDIR=$2; shift;; + (--pkgbase) PKGCFGBASE=$2; shift;; + (-m) method=$2; shift;; + (-n) VSERVER_NAME=$2; shift;; + (--) shift; break;; + (*) { setup_setOption2 "$1" "$2" && shift; } || \ { echo $"vserver-build: internal error."; exit 1; } >&2 ;; @@ -116,14 +116,14 @@ test "$VSERVER_NAME" || { setup_setDefaults "$VSERVER_NAME" case x"$method" in - xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;; - xapt-rpm|xcopy|xskeleton|xdebootstrap) + (xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;; + (xapt-rpm|xcopy|xskeleton|xdebootstrap) . $PKGLIBDIR/vserver-build.$method ;; - x) echo $"No build-method specified" >&2 + (x) echo $"No build-method specified" >&2 exit 1 ;; - *) echo $"Unknown build-method '$method'" >&2 + (*) echo $"Unknown build-method '$method'" >&2 exit 1 ;; esac -- 1.8.1.5