Ticket #28032: search-libpng12.sh
File search-libpng12.sh, 397 bytes (added by jmroot (Joshua Root), 14 years ago) |
---|
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | ports="" |
4 | for f in $(find /opt/local/bin -type f) $(find /opt/local/lib -name \*.dylib); do |
5 | if otool -L $f | grep -q 'libpng12\.0'; then |
6 | ports+="\n$(port provides $f | cut -d ' ' -f 5)" |
7 | fi |
8 | done |
9 | for f in $(find /opt/local/lib -name \*.la); do |
10 | if grep -q libpng12 $f; then |
11 | ports+="\n$(port provides $f | cut -d ' ' -f 5)" |
12 | fi |
13 | done |
14 | |
15 | echo $ports | sort | uniq |