Subject: Re: meta package for all Perl modules ?
To: None <pkgsrc-users@netbsd.org>
From: Mehul N. Sanghvi <mehul.sanghvi@gmail.com>
List: pkgsrc-users
Date: 08/03/2007 22:43:08
Jeremy C. Reed said the following on 8/3/2007 10:06 PM:
> On Fri, 3 Aug 2007, Mehul N. Sanghvi wrote:
>
>> 'allo,
>>
>> What would be the quickest way to build all Perl module in pkgsrc/net and
>> pkgsrc/www without building each one manually ?
>
> I didn't test this much but this got me somewhere so you can make a
> Makefile:
>
> ls -d www/p5-* net/p5-* | while read line ; do echo HERE $line ; test -d
> $line && cd $line && make show-var VARNAME=PKGNAME && cd - ; done | tee ~/abc
>
> cat ~/abc | egrep 'HERE|[0-9]' | sed 's,HERE ,,' | while read line ; do
> read line2 ; line3=`echo $line2 | sed 's,^\(.*\)-[0-9].*$,\1,'` ; echo
> DEPENDS+=${line3}"-*":../../${line} ; done
>
>
> Jeremy C. Reed
>
Jeremy & Steven,
Thanks for the ideas. I was already thinking in terms of the for
loop that Steven mentioned, but I like the the Makefile based solution that
Jeremy's shown as well.
cheers,
mehul
--
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com