From owner-freebsd-questions@FreeBSD.ORG Sun Jul 25 09:35:28 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 419BF1065676 for ; Sun, 25 Jul 2010 09:35:28 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0EBD88FC1E for ; Sun, 25 Jul 2010 09:35:27 +0000 (UTC) Received: by wwf26 with SMTP id 26so2000234wwf.1 for ; Sun, 25 Jul 2010 02:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=HjvudZ70O7P0pXF5dWIMuo2VdjyU5BxMs1qFO3uqwXI=; b=pMtkN71WwIBELYTjXLkYg+8a6iKzThtTmLv+mpJogTDNADrbXQZMOtp9rs/l8o1ZBs KPzTZe/W4wVMk8IhsHToLKp8JYx9iery8lJUrUMSSZQwvuzj771k5JCBXndvNVqMiNZY pGzAHNeR8/GCIagt4mVbkC3KbfM0MeJVV8xjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=YIFV893raOJYXk8d6dOW2qO5azWNdk5ccR8DeMrG/WVok9rx+Zm1zmleNong2dWLXa vngdGBFpcxnJrq46Oc9HFPnK6YWYFZjTx8tTdJqHL8Rl++ql/uL7kjAn9tD6EDsbldHm kkyMNcaHTOSBQGIDmzkH7lssLXdssUkjUA6Cg= MIME-Version: 1.0 Received: by 10.216.178.196 with SMTP id f46mr5788316wem.62.1280050526658; Sun, 25 Jul 2010 02:35:26 -0700 (PDT) Received: by 10.216.171.10 with HTTP; Sun, 25 Jul 2010 02:35:26 -0700 (PDT) In-Reply-To: <4C4BD1B0.5080606@comclark.com> References: <4C4BD1B0.5080606@comclark.com> Date: Sun, 25 Jul 2010 09:35:26 +0000 Message-ID: From: "b. f." To: Aiza Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: searching INDEX in .sh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jul 2010 09:35:28 -0000 On 7/25/10, Aiza wrote: > b. f. wrote: > I just found /usr/ports/Tools/scripts/postsearch which uses the > /usr/ports/INDEX-8 file as its source to search. This is a perl script > but can be used from within in .sh script. Ah, ok. I thought you wanted to use the Bourne shell and base system utilities only. > > Been playing with it and see a big inconsistence in how ports list > build-deps and run-deps. Some ports list no build-deps just run-deps and > vise-versa and some have same listed list in both. > > Thinking I will have to take both the build and run deps lists and sort > them together and drop dups to create a good list of dependents to allow > for the lax enforcement of standards in the Makefile about how to list > the ports dependents. As someone remarked, this is not necessarily inconsistent. The standards certainly aren't lax, although mistakes are occasionally made. And it is slightly complicated by the fact that the listing in the INDEX is recursive. b.