[CFT+BRAINSTORM] One USE_ to rule them all
Armin Pirkovitsch
sperber at freebsd.org
Thu Feb 7 10:41:33 UTC 2013
On 2013-02-07 11:36, Anton Shterenlikht wrote:
> Date: Thu, 7 Feb 2013 10:52:01 +0100
> From: Baptiste Daroussin <bapt at FreeBSD.org>
> To: Alberto Villa <avilla at freebsd.org>
> Subject: Re: [CFT+BRAINSTORM] One USE_ to rule them all
>
> On Thu, Feb 07, 2013 at 09:54:59AM +0100, Alberto Villa wrote:
> > On Thursday 07 February 2013 06:32:54 Armin Pirkovitsch wrote:
> > > # find /usr/ports -name Makefile | xargs grep -R FEATURES | wc
> -l
> > > 82
> > > # find /usr/ports -name Makefile | xargs grep -R USES | wc -l
> > > 20
> > >=20
> > > Sounds to me like there are less false positives for USES.
> >=20
> > Add -w and USES wins:
> > $ find /usr/ports -name Makefile | xargs grep -Rw FEATURES | wc -l
> > 37
> > $ find /usr/ports -name Makefile | xargs grep -Rw USES | wc -l
> > 0
>
> Is "-R" really needed in this case?
> I think there is no recursion as you
> already found all files. Anyway,
> I get the same answers with no "-R".
You are of course right - i just copied the grep and forgot to remove
"-R" - when you give grep a specific file (which happens in this case)
"-R" has no effect.
Armin
More information about the freebsd-ports
mailing list