From owner-freebsd-isdn Thu Jul 29 6:25:21 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from post.ruh-bath.swest.nhs.uk (hide14.nhs.uk [194.6.81.14]) by hub.freebsd.org (Postfix) with ESMTP id DC2AC14F01 for ; Thu, 29 Jul 1999 06:23:46 -0700 (PDT) (envelope-from rich@ruh-bath.swest.nhs.uk) Received: by post.ruh-bath.swest.nhs.uk with Internet Mail Service (5.5.2448.0) id ; Thu, 29 Jul 1999 14:24:43 +0100 Message-ID: <930BFA16390CD3119E010000F6E660C9A564@fear.ruh-bath.swest.nhs.uk> From: "Wood, Richard" To: "'Andrej.Brodnik@IBC.IskraSistemi.Si'" Cc: freebsd-isdn@FreeBSD.ORG Subject: RE: patches Date: Thu, 29 Jul 1999 14:24:40 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > -----Original Message----- > From: Andrej Brodnik [mailto:brodnik@IBC.IskraSistemi.Si] > Sent: 29 July 1999 14:22 > First, how/where does one send patches. I've sent a tentative (read, totally untested) patch to Hellmuth, as follows... diff -u old/overinstall.sh new/overinstall.sh --- old/overinstall.sh Thu Jul 29 14:03:26 1999 +++ new/overinstall.sh Thu Jul 29 14:04:31 1999 @@ -59,7 +59,12 @@ echo "moving $2" echo " to $2-BACKUP" $MVCMD $2 $2-BACKUP + else + echo "Creating dummy backup for a new file" + touch $2-NOBACKUP fi + + echo "linking $1" echo " to $2" $LNCMD $1 $2 diff -u old/overuninstall.sh new/overuninstall.sh --- old/overuninstall.sh Thu Jul 29 14:03:27 1999 +++ new/overuninstall.sh Thu Jul 29 14:03:27 1999 @@ -50,6 +50,12 @@ $RMCMD $1 $MVCMD $1-BACKUP $1 fi + if [ -e $1-NOBACKUP ] + then + echo "removing $1" + $RMCMD $1 + $RMCMD $1-NOBACKUP + fi } echo "" Bascically, in the remove_and_restore, it adds an extra check for $1-NOBACKUP, and if it exists it rm's both $1 and $1-NOBACKUP. In move_and_link, if the test for the existance of $2 fails it creates $2-NOBACKUP before linking the files. Rich -- Rich Wood Home: rich@dynamite.org, rich@FreeBSD.org.uk Work: rich@ruh-bath.swest.nhs.uk, rich@systemagic.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message