From owner-freebsd-isdn Thu Jul 29 5:19:57 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from pollux.sdata.de (pollux.sdata.de [193.30.133.37]) by hub.freebsd.org (Postfix) with ESMTP id 3AD6F1502B for ; Thu, 29 Jul 1999 05:19:47 -0700 (PDT) (envelope-from chris@sdata.de) Received: from sdata.de (vega.sdata.de [193.30.133.36]) by pollux.sdata.de (8.9.3/8.9.3) with ESMTP id OAA18443; Thu, 29 Jul 1999 14:17:24 +0200 (CEST) (envelope-from chris@sdata.de) Message-ID: <37A04654.7E21E941@sdata.de> Date: Thu, 29 Jul 1999 14:17:24 +0200 From: Christoph Splittgerber Organization: sdata - C. Splittgerber Datentechnik X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Wood, Richard" Cc: "'Andrej.Brodnik@IBC.IskraSistemi.Si'" , freebsd-isdn@FreeBSD.ORG Subject: Re: overuninstall.sh and i4b_rbch_ioctl.h References: <930BFA16390CD3119E010000F6E660C9A55E@fear.ruh-bath.swest.nhs.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Wood, Richard" wrote: > > > -----Original Message----- > > From: Andrej Brodnik [mailto:brodnik@IBC.IskraSistemi.Si] > > Sent: 29 July 1999 12:59 > > > > > $RMCMD $1 > > if [ -e $1-BACKUP ] > > then > > echo "moving $1-BACKUP" > > echo " back to $1" > > But that would remove the original file even if there was no backup to > replace it with, which is not the desired result. The way I see it, it is exactly what has to be done. > > overuninstall.sh only backs out changes made by overinstall.sh, i.e. it > checks to see if a -BACKUP is available, and if so, removes the original and > replaces it with the -BACKUP version. > If there is no -BACKUP version, the file has not been upgraded with > overinstall.sh and therefore there is (or there should be) no change to back > out. False, overinstall.sh installed the new file, the reason there is no -BACKUP is because the the file did not exist in the previous release. In this case, overinstall.sh has to remove the file regardless if there is a -BACKUP or not if it wants to undo the changes that overinstall.sh made. Christoph To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message