Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 1999 14:24:40 +0100
From:      "Wood, Richard" <rich@ruh-bath.swest.nhs.uk>
To:        "'Andrej.Brodnik@IBC.IskraSistemi.Si'" <Andrej.Brodnik@IBC.IskraSistemi.Si>
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   RE: patches
Message-ID:  <930BFA16390CD3119E010000F6E660C9A564@fear.ruh-bath.swest.nhs.uk>

next in thread | raw e-mail | index | archive | help
> -----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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?930BFA16390CD3119E010000F6E660C9A564>