Re: searching INDEX in .sh

2010-07-25 Thread b. f.
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 uti

Re: searching INDEX in .sh

2010-07-25 Thread Matthew Seaman
On 25/07/2010 03:58:29, Aiza wrote: > I'm looking for a snippet of .sh type shell code that searches the > /usr/ports/INDEX-8 file for dependents. > > Just a pointer to a script in the ports system that has this would be > helpful. grep 'dependency-name' /usr/ports/INDEX.8 | grep -v '^dependency-

Re: searching INDEX in .sh

2010-07-25 Thread perryh
Aiza wrote: > ... 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. None of these is necessarily wrong. A port consisting solely of a Perl script would have no build-deps -- t

Re: searching INDEX in .sh

2010-07-24 Thread Aiza
b. f. wrote: I'm looking for a snippet of .sh type shell code that searches the /usr/ports/INDEX-8 file for dependents. Just a pointer to a script in the ports system that has this would be helpful Do you mean that, given port A, you want to find all ports that need port A in order to be fetch

Re: searching INDEX in .sh

2010-07-24 Thread b. f.
On 7/25/10, b. f. wrote: > the parts of ports/Mk/bsd.port.mk that are used by running `make -C > pretty-print-run-depends > pretty-print-build-depends`. Sorry, it's actually 'pretty-print-build-depends-list' and 'pretty-print-run-depends-list'. b. _

Re: searching INDEX in .sh

2010-07-24 Thread b. f.
>I'm looking for a snippet of .sh type shell code that searches the >/usr/ports/INDEX-8 file for dependents. > >Just a pointer to a script in the ports system that has this would be >helpful Do you mean that, given port A, you want to find all ports that need port A in order to be fetched, extract

searching INDEX in .sh

2010-07-24 Thread Aiza
I'm looking for a snippet of .sh type shell code that searches the /usr/ports/INDEX-8 file for dependents. Just a pointer to a script in the ports system that has this would be helpful. Thanks ___ freebsd-questions@freebsd.org mailing list http://li