From b85b93ffd5f8782cb93273531f18e161835f949d Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 24 Jan 2003 13:03:24 +0000 Subject: [PATCH] upload.sh: Accidentally moved back to version 1.7 --- scripts/upload.sh | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/scripts/upload.sh b/scripts/upload.sh index 5e764c82..6f3532cd 100644 --- a/scripts/upload.sh +++ b/scripts/upload.sh @@ -93,8 +93,6 @@ cat << EOT -c variable : show contents of variable valid variables are login, method, passwd, file_owner, file_group, file_mode, dir_mode, source, target_file - -p : parse command line into variables, show results and exit if -x switch is active - -x : exit after informational commands EOT [ -n "$1" ] && exit $1 @@ -213,20 +211,16 @@ EOT # -- here we go # -- command line arguments -set -- `getopt 'hvc:px' $*` +set -- `getopt 'hvc:' $*` while [ "$1" != -- ]; do case $1 in - -h) + h) usage 0;; - -v) + v) VERBOSE=1;; - -c) + c) VARIABLE=$2 shift;; - -p) - PARSE=1;; - -x) - EXIT=1;; *) usage 1;; esac @@ -270,7 +264,7 @@ done # -- real run if [ -n "$VARIABLE" ]; then eval `parse_target` - case "$VARIABLE" in + case "$VARABLE" in login) echo $login;; method) echo $method;; passwd) echo $passwd;; @@ -284,18 +278,7 @@ if [ -n "$VARIABLE" ]; then echo Unknown variable \"$VARIABLE\". Exiting. >&2 exit 1; esac - test "$EXIT" = 1 && exit 0 -fi - -if [ "$PARSE" = 1 ]; then - - eval `parse_target` - - for var in login method passwd file_owner file_group file_mode dir_mode source target_file ; do - - eval echo $var = \$$var - done - test "$EXIT" = 1 && exit 0 + exit 0 fi for t in $*; do