From: Tom Yu Date: Mon, 20 May 1996 05:17:15 +0000 (+0000) Subject: * libupdate.sh: do the shift before the assignments X-Git-Tag: krb5-1.0-beta6~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=847ee6ad3a4007316480ae975de34a33574154a2;p=krb5.git * libupdate.sh: do the shift before the assignments git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8055 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/libupdate.sh b/src/util/libupdate.sh index 8ef868331..593335b46 100644 --- a/src/util/libupdate.sh +++ b/src/util/libupdate.sh @@ -8,20 +8,21 @@ ARADD="@ARADD@" ARCHIVE="@ARCHIVE@" -library=$1 -oblist=$2 -dir=$3 - -force= -rmcmd= -arcmd="$ARADD" -if test "$1" = "--force" -then +case "$1" in +--force) force=yes arcmd="$ARCHIVE" - rmcmd="rm -f $library" shift -fi + rmcmd="rm -f $1" + ;; +*) + arcmd="$ARADD" + rmcmd= + force= +esac +library=$1 +oblist=$2 +dir=$3 stamp=`echo $library | sed -e 's/.a$/.stamp/'` @@ -37,10 +38,3 @@ echo "Updating library $library from $oblist" $rmcmd $arcmd $library `cat $oblist | \ sed -e "s;^\([^ ]*\);$dir/\1;g" -e "s; \([^ ]*\); $dir/\1;g"` - - - - - - -