Ticket #28616: search-libpng12.sh

File search-libpng12.sh, 235 bytes (added by lifechoose@…, 13 years ago)

seach-libpng12.sh

Line 
1#!/bin/sh
2
3ports=""
4for 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
8done
9
10echo $ports | sort | uniq