[PATCH] Finding stale files in /usr/src during "make update"
Giorgos Keramidas
keramida at linux.gr
Mon Aug 30 01:48:28 PDT 2004
On 2004-08-30 10:28, Ruslan Ermilov <ru at freebsd.org> 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
More information about the freebsd-current
mailing list