Ticket #28049: search-libpng12.sh

File search-libpng12.sh, 397 bytes (added by jmroot (Joshua Root), 14 years ago)
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
9for 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
13done
14
15echo $ports | sort | uniq