>>>>> "Michael" == Michael G Schwern <[EMAIL PROTECTED]> writes:

Michael> On Sat, Oct 18, 2003 at 11:47:53PM -0400, Jack Howarth wrote:
>> 2) locally I would like to find a way to automatically rebuild ALL
>> installed fink packages on my machine using the Apple Aug 2003 devtools
>> I have installed. Is there any clever tricks to do this with a form
>> of the "fink rebuild <package>" command? I'm not sure how to
>> properly script that?

Michael> If nobody gives you anything better...

Michael> #!/usr/bin/perl -w

Michael> my @installed = map { /^\s +i \s+ (\S+)/x; $1 }

Danger danger danger. If that doesn't match, you get the previous
$1.  NEVER NEVER NEVER use $1 except when qualified as the condition
of a match.

Michael>                 grep /^\s+i /, `fink list -i`;

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to