1 |
maillog: 11/08/2005-21:11:35(+0200): Jan Spitalnik types |
2 |
> Dne čt 11. srpna 2005 20:58 Donnie Berkholz napsal(a): |
3 |
> > Donnie Berkholz wrote: |
4 |
> > > Here's a slightly better version: |
5 |
> > |
6 |
> > And here's the enhanced, scripted version. It traces libs back to their |
7 |
> > packages to really make things easy. |
8 |
> |
9 |
> you can replace (starting line 37) |
10 |
> if $(grep ' \-l[a-zA-Z]' ${1} | grep static); then |
11 |
> static=1 |
12 |
> fi |
13 |
> if ! $(grep ' \-l[a-zA-Z]' ${1} | grep static); then |
14 |
> shared=1 |
15 |
> fi |
16 |
> |
17 |
> with |
18 |
> if $(grep ' \-l[a-zA-Z]' ${1} | grep static); then |
19 |
> static=1 |
20 |
> else |
21 |
> shared=1 |
22 |
> fi |
23 |
|
24 |
The script currently breaks with static libs. |
25 |
|
26 |
The fix is: |
27 |
|
28 |
- remove the $( -- no need to execute the output of the grep in a |
29 |
subshell. |
30 |
- make the "grep static" a "grep -q static" -- we don't need to see |
31 |
the lines that match "static" |
32 |
|
33 |
-- |
34 |
*> Georgi Georgiev *> There's a little picture of ED MCMAHON *> |
35 |
<* chutz@×××.net <* doing BAD THINGS to JOAN RIVERS in a <* |
36 |
*> +81(90)2877-8845 *> $200,000 MALIBU BEACH HOUSE!! *> |
37 |
-- |
38 |
gentoo-dev@g.o mailing list |