14 | | for file in `find /opt/local/lib -name *.dylib`; do |
15 | | # Skip this match if it's a symbolic link |
16 | | if [[ ! -h $file ]]; then |
17 | | # Look for references to the missing library |
18 | | otool -L $file | grep --silent $1 |
19 | | if [[ "$?" == "0" ]]; then |
20 | | port provides `echo $file` |
21 | | fi |
22 | | fi |
| 14 | if test -z "$1"; then |
| 15 | echo "usage: $0 <libname>" |
| 16 | exit 1 |
| 17 | fi |
| 18 | for file in `find /opt/local/lib -name *.dylib; find /opt/local/bin`; do |
| 19 | # Skip this match if it's a symbolic link |
| 20 | if test -f $file -a ! -L $file; then |
| 21 | # Look for references to the missing library |
| 22 | otool -L $file | grep --silent $1 |
| 23 | if test "$?" = "0"; then |
| 24 | port provides `echo $file` |
| 25 | fi |
| 26 | fi |