Subject: Re: Problems with CVS repository?
To: None <>
From: Aymeric Vincent <>
List: current-users
Date: 07/24/2001 13:52:53 (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
and possibly

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:

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.