From owner-freebsd-ports@FreeBSD.ORG Thu Feb 7 10:36:48 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D9D26D91; Thu, 7 Feb 2013 10:36:48 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 5BA67369; Thu, 7 Feb 2013 10:36:48 +0000 (UTC) Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1U3OqR-0005RS-Nj; Thu, 07 Feb 2013 10:36:47 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1U3OqR-0005g1-Br; Thu, 07 Feb 2013 10:36:43 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r17Aahl3054066; Thu, 7 Feb 2013 10:36:43 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r17AagEa054065; Thu, 7 Feb 2013 10:36:42 GMT (envelope-from mexas) Date: Thu, 7 Feb 2013 10:36:42 GMT From: Anton Shterenlikht Message-Id: <201302071036.r17AagEa054065@mech-cluster241.men.bris.ac.uk> To: avilla@freebsd.org, bapt@FreeBSD.org Subject: Re: [CFT+BRAINSTORM] One USE_ to rule them all In-Reply-To: <20130207095201.GA26686@ithaqua.etoilebsd.net> X-Spam-Score: -1.3 X-Spam-Level: - Cc: lists@eitanadler.com, freebsd-ports@freebsd.org, sperber@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 10:36:48 -0000 Date: Thu, 7 Feb 2013 10:52:01 +0100 From: Baptiste Daroussin To: Alberto Villa 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". Anton P.S. I'm not trying to be clever, just always fascinated by multi-pipe unix examples, so I try to study those in detail.