1 |
Hi; |
2 |
|
3 |
Not running gnome or kde, I prefer to be as tight as |
4 |
possible on dependancies. |
5 |
I whiped up this scrawny script to help me determine the |
6 |
dependancies for some ebuilds I write; does anyone want to |
7 |
improve it, or say why it sucks? |
8 |
|
9 |
--- |
10 |
[squish.home.loc] /home/set/mysrc/script (Set): cat pkg-depend |
11 |
#!/bin/sh |
12 |
|
13 |
FILE=$1 |
14 |
if [ ! -f "$FILE" ] ; then |
15 |
FILE=`which $1` |
16 |
fi |
17 |
|
18 |
ldd "$FILE" | gawk '{ print $3 }' - | xargs -n1 qpkg -nc -f -v\ |
19 |
| sort | uniq |
20 |
--- |
21 |
|
22 |
Paul |
23 |
set@×××××.com |