From owner-freebsd-current@FreeBSD.ORG Mon Aug 30 08:48:28 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4085B16A4CE; Mon, 30 Aug 2004 08:48:28 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDF8543D31; Mon, 30 Aug 2004 08:48:26 +0000 (GMT) (envelope-from keramida@linux.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])i7U8mLtH015943; Mon, 30 Aug 2004 11:48:23 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) i7U8mDj8005633; Mon, 30 Aug 2004 11:48:13 +0300 (EEST) (envelope-from keramida@linux.gr) Received: (from keramida@localhost)i7U8mC50005632; Mon, 30 Aug 2004 11:48:12 +0300 (EEST) (envelope-from keramida@linux.gr) Date: Mon, 30 Aug 2004 11:48:12 +0300 From: Giorgos Keramidas To: Ruslan Ermilov Message-ID: <20040830084811.GA96014@orion.daedalusnetworks.priv> References: <20040830072811.GA84862@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040830072811.GA84862@ip.net.ua> cc: current@freebsd.org Subject: Re: [PATCH] Finding stale files in /usr/src during "make update" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 08:48:28 -0000 On 2004-08-30 10:28, Ruslan Ermilov wrote: > What do you people think about the following patch? It can > be very useful to find stale files under /usr/src which may > sometimes be unsafe. It's nice, IMHO :) > %%% > Index: Makefile.inc1 > =================================================================== > RCS file: /home/ncvs/src/Makefile.inc1,v > retrieving revision 1.442 > diff -u -r1.442 Makefile.inc1 > --- Makefile.inc1 25 Aug 2004 22:06:29 -0000 1.442 > +++ Makefile.inc1 30 Aug 2004 07:17:37 -0000 > @@ -83,7 +83,7 @@ > .endif > > CVS?= cvs > -CVSFLAGS?= -A -P -d > +CVSFLAGS?= -A -P -d -I! -ICVS > .if defined(CVSTAG) > CVSFLAGS+= -r ${CVSTAG} > .endif > %%% I regularly use the same trick here. When I want to build world and keep a logfile of all that's going on, I use something like this: # cd /root # sh build.sh -cu 2>&1 | tee logfile and one of the things that build.sh does when the -u option is present is: cd /usr/src ... if [ $rc_update -ne 0 ]; then echo '::: Updating the sources from CVS' env CVSROOT=/home/ncvs CVSFLAGS='-APd -I! -I CVS' \ make update unset rc_update fi