Subject: Proper way to clean /usr/src before cvs update?
To: None <netbsd-help@netbsd.org>
From: Johan A. van Zanten <johan@ewranglers.com>
List: netbsd-help
Date: 07/23/2002 04:09:46
Greetings.

 I'm working in a source tree for the 1.5 release. The machine is running
a very recent 1.5.2.  (/usr/src was updated from the CVS tree for
netbsd-1-5 about 1 week ago.)

So, i do:

CVSROOT=:pserver:anoncvs@anoncvs.netbsd.org:/cvsroot
export CVSROOT
cd /usr/src
cvs login
cvs update -d -P -r netbsd-1-5

...and lots of happiness scrolls by, and then:

cvs [update aborted]: could not chdir to gnu/usr.bin/grep/grep: Not a directory

 Now, if i do:

cd /usr/src
make cleandir

... again, lots of productive stuff goes by, but i find that the binary
executable "gnu/usr.bin/grep/grep" still exists, and other directories
under gnu still contain files that will cause the cvs update to fail.

Attempts to clean up from within the directories look good, but do nothing:

brahma:/usr/src $ cd gnu/usr.bin/grep/
brahma:/usr/src/gnu/usr.bin/grep $ make cleandir
rm -f grep.info
rm -f a.out [Ee]rrs mklog core *.core  grep bindtextdom.o dcgettext.o dgettext.o gettext.o finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o explodename.o intl-compat.o grep.o dfa.o kwset.o obstack.o savedir.o getopt.o getopt1.o search.o stpcpy.o regex.o grepmat.o  bindtextdom.ln dcgettext.ln dgettext.ln gettext.ln finddomain.ln loadmsgcat.ln localealias.ln textdomain.ln l10nflist.ln explodename.ln intl-compat.ln grep.ln dfa.ln kwset.ln obstack.ln savedir.ln getopt.ln getopt1.ln search.ln stpcpy.ln regex.ln grepmat.ln grep.1 grep.info grep.cat1  
rm -f grep.cat1
rm -f .depend /usr/src/gnu/usr.bin/grep/tags 
brahma:/usr/src/gnu/usr.bin/grep $ ls -FC
CVS/            dgettext.o      gettext.o       libintl.h       search.o
Makefile        egrep/          grep*           loadmsgcat.o    stpcpy.o
bindtextdom.o   explodename.o   grep.o          localealias.o   textdomain.o
common/         fgrep/          grepmat.o       obj/
config.h        finddomain.o    intl-compat.o   obstack.o
dcgettext.o     getopt.o        kwset.o         regex.o
dfa.o           getopt1.o       l10nflist.o     savedir.o



 As near as i can tell, make is echoing the command but not actually
executing it. (As if i had supplied "-n".)

What am i missing?  I've looked through /usr/src/share/mk/bsd.README, but
didn't see anything immediately helpful. Obviously a few shell commands
would clean up the cruft, but i'd rather know the "proper" way.



 -johan