Subject: Re: Problems with CVS repository?
To: None <current-users@netbsd.org>
From: Aymeric Vincent <xmimic@free.fr>
List: current-users
Date: 07/24/2001 13:52:53
darcy@druid.net (D'Arcy J.M. Cain) writes:

> cleandir ===> usr.bin/ktrace
> rm -f a.out [Ee]rrs mklog core *.core  ktrace ktrace.o subr.o  ktrace.ln subr.ln  
> rm: ktrace: is a directory

You should use option '-P' when doing a cvs update. It removes
directories that are no more used.

And by the way, options -d (also fetch new directories) and -A (remove
all tags) will certainly be useful too.

In summary:

% cvs update -dPA


Don't forget to put
MKOBJDIRS=
and possibly
OBJMACHINE=

in your /etc/mk.conf so that you don't have to make cleandir before
doing a cvs update. You'll have to mkdir /usr/obj (with the default
setup) for this to be even more useful.

You can find infos about this at:

http://www.netbsd.org/Documentation/current/

and reading the beginning of /usr/src/Makefile and
/usr/src/etc/Makefile can be useful too.

Don't forget to read /usr/src/UPDATING if you have troubles making a
build after a cvs update.

regards,
 Aymeric