Subject: Re: grep: is a directory
To: Julian C. Dunn <lists@aquezada.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 07/02/2003 21:15:50
On Tue, Jul 01, 2003 at 11:02:02AM -0400, Julian C. Dunn wrote:
> [Before you hit reply and tell me to "cvs update -Pd", I've already done
> that. I get the same results.]
>
> It seems a ton of people have mentioned in the archives about the
> dreaded "grep: is a directory" error. For those unfamiliar with the
> problem:
>
> % ./build.sh -m i386 -a sparc -T $HOME/devel/netbsd/tools -D
> /home/staff/jdunn/devel/netbsd/destdir -O
> /home/staff/jdunn/devel/netbsd/obj tools
> .
> .
> .
> cleandir ===> gnu/usr.bin/grep
> rm -f grep.o dfa.o kwset.o obstack.o savedir.o getopt.o getopt1.o
> search.o stpcpy.o regex.o grepmat.o grep.ln dfa.ln kwset.ln obstack.ln
> savedir.ln getopt.ln getopt1.ln search.ln stpcpy.ln regex.ln grepmat.ln
> rm -f grep.1 grep.info grep.cat1 grep.info
> rm -f a.out [Ee]rrs mklog core *.core grep
> rm: grep: is a directory
> *** Error code 1
>
> Stop.
>
>
> I looked through the archives and I think I understand what others,
> including Manuel, have said about the rationale "cvs update -Pd",
> however this isn't the problem here because I've already DONE that
> within my source tree.
>
> Nowhere in the gnu/usr.bin/grep directory is there a nested grep
> directory, so this "rm" must be looking somewhere else for a grep to
> remove, and the only other "grep" directory I can think of is the
> ../../dist/grep directory. Could it be trying to remove that?
Could be a grep directory in the obj dir too.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 24 ans d'experience feront toujours la difference
--