change_dylib_path.sh 402 Bytes
Newer Older
1
2
#!/bin/bash

3
files=`ls ${MDANSE_APP_DIR}/Contents/Frameworks/libwx*.dylib`
4
5
6
7
8
9
10
11

libs="osx_cocoau_xrc osx_cocoau_webview osx_cocoau_html osx_cocoau_qa osx_cocoau_adv osx_cocoau_core baseu_xml baseu_net baseu"

for f in $files
do
    chmod 777 $f
    for l in $libs
    do
12
        install_name_tool -change /usr/local/lib/libwx_$l-3.0.dylib @executable_path/../Frameworks/libwx_$l-3.0.dylib $f
13
14
    done
done