Ticket #28015: search-libpng12.sh

File search-libpng12.sh, 239 bytes (added by jmroot (Joshua Root), 14 years ago)
Line 
1#!/bin/sh
2
3ports=""
4for f in $(find /opt/local/bin) $(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