maillog: 11/08/2005-21:11:35(+0200): Jan Spitalnik types
> Dne čt 11. srpna 2005 20:58 Donnie Berkholz napsal(a):
> > Donnie Berkholz wrote:
> > > Here's a slightly better version:
> >
> > And here's the enhanced, scripted version. It traces libs back to their
> > packages to really make things easy.
> 
> you can replace (starting line 37)
>       if $(grep ' \-l[a-zA-Z]' ${1} | grep static); then
>               static=1
>       fi
>       if ! $(grep ' \-l[a-zA-Z]' ${1} | grep static); then
>               shared=1
>       fi
> 
> with
>       if $(grep ' \-l[a-zA-Z]' ${1} | grep static); then
>               static=1
>       else
>               shared=1
>       fi

The script currently breaks with static libs.

The fix is:

- remove the $( -- no need to execute the output of the grep in a
  subshell.
- make the "grep static" a "grep -q static" -- we don't need to see
  the lines that match "static"

-- 
*>   Georgi Georgiev   *> There's a little picture of ED MCMAHON       *>
<*    [EMAIL PROTECTED]    <* doing BAD THINGS to JOAN RIVERS in a         <*
*>  +81(90)2877-8845   *> $200,000 MALIBU BEACH HOUSE!!                *>
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to