1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash -x #uncomment to get list of files # for i in *.dylib # do # echo -change /opt/local/lib/$i @executable_path/../SharedSupport/$i # done > changes for i in *.dylib do install_name_tool `cat changes` $i done