From 847ee6ad3a4007316480ae975de34a33574154a2 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 20 May 1996 05:17:15 +0000 Subject: [PATCH] * libupdate.sh: do the shift before the assignments git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8055 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/libupdate.sh | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) 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"` - - - - - - - -- 2.26.2