Debian Codegraph @

platforms/osx/update-libs

raw
1 #!/bin/sh
2 # Update path to libraries, probably done by libtool but not working here
3
4 dest=$1
5 file=$2
6 otool -L $file | awk '/Users/ { print $1 }' | while read fname
7 do
8 f=`basename $fname`
9 install_name_tool -change $fname $dest/lib/$f $file
10 done