From 6f623a50de6084561abfc4a1f78e7ab4687da09b Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 17 Apr 1996 02:30:09 +0000 Subject: [PATCH] Wed Mar 6 05:02:36 1996 Mark Eichin * libupdate.sh: $ARCHIVE does not delete when creating. Explicitly remove $library when using --force. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7820 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/ChangeLog | 7 +++++++ src/util/libupdate.sh | 3 +++ 2 files changed, 10 insertions(+) diff --git a/src/util/ChangeLog b/src/util/ChangeLog index 04416270b..d96f078f0 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,10 @@ +Tue Apr 16 22:26:36 1996 Ken Raeburn + + Wed Mar 6 05:02:36 1996 Mark Eichin + + * libupdate.sh: $ARCHIVE does not delete when creating. Explicitly + remove $library when using --force. + Fri Mar 29 16:42:24 1996 Richard Basch * makeshlib.sh: Added support for SunOS shared libraries. diff --git a/src/util/libupdate.sh b/src/util/libupdate.sh index c56775f01..09e296d50 100644 --- a/src/util/libupdate.sh +++ b/src/util/libupdate.sh @@ -9,11 +9,13 @@ ARADD="@ARADD@" ARCHIVE="@ARCHIVE@" force= +rmcmd= arcmd="$ARADD" if test "$1" = "--force" then force=yes arcmd="$ARCHIVE" + rmcmd="rm -f $library" shift fi @@ -32,6 +34,7 @@ fi 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