Annotation of imach/distributions/osx/gnuplot_bin/bin/install_name.sh, revision 1.1
1.1 ! brouard 1: #!/bin/bash
! 2: cp /Users/nbrouard/RPMS/gnuplot-cvs/gnuplot/gnuplot-5.1_cvs8Dec13\:19\:21-aquaterm .
! 3: ln -f gnuplot-5.1_cvs8Dec13\:19\:21-aquaterm gnuplot
! 4: otool -L gnuplot
! 5: mv /usr/local/libold /usr/local/lib
! 6: # libgd.3.dylib libjpeg.8.dylib libpng16.16.dylib libtiff.5.dylib libpangocairo-1.0.0.dylib libpango-1.0.0.dylib libgobject-2.0.0.dylib libglib-2.0.0.dylib libintl.8.dylib libcairo.2.dylib
! 7: rm -rf ../lib
! 8: mkdir ../lib
! 9: for i in `otool -L gnuplot |grep /usr/local|awk '{print $1}'`
! 10: do
! 11: cp -n ${i} ../lib
! 12: ii=`echo ${i} | awk -F / '{print $NF}'`
! 13: echo ii=${ii}
! 14: #otool -L ../lib/${i} |grep /usr/local/lib|awk -F "[/ ]" '{print $5}'`
! 15: echo TO BE DONE 2 `otool -L ../lib/${ii} |grep /usr/local|awk '{print $1}'`
! 16: for j in `otool -L ../lib/${ii} |grep /usr/local|awk '{print $1}'`
! 17: do
! 18: jj=`echo ${j} | awk -F / '{print $NF}'`
! 19: echo jj=${jj}
! 20: chmod -R u+rw ../lib
! 21: cp -n ${j} ../lib
! 22: if [ ${i} == ${j} ]; then
! 23: install_name_tool -id @executable_path/../lib/${jj} ../lib/${ii}
! 24: else
! 25: install_name_tool -change ${j} @executable_path/../lib/${jj} ../lib/${ii}
! 26: fi
! 27: echo TO BE DONE 3 `otool -L ../lib/${jj} |grep /usr/local|awk '{print $1}'`
! 28: for k in `otool -L ../lib/${jj} |grep /usr/local|awk '{print $1}'`
! 29: do
! 30: kk=`echo ${k} | awk -F / '{print $NF}'`
! 31: echo kk=${kk}
! 32: chmod -R u+rw ../lib
! 33: cp -n ${k} ../lib
! 34: if [ ${k} == ${j} ]; then
! 35: install_name_tool -id @executable_path/../lib/${kk} ../lib/${jj}
! 36: else
! 37: install_name_tool -change ${k} @executable_path/../lib/${kk} ../lib/${jj}
! 38: fi
! 39: done
! 40: echo DONE 3 OTOOL -L
! 41: otool -L ../lib/${jj}
! 42: done
! 43: DONE 2 OTOOL -L
! 44: otool -L ../lib/${ii}
! 45: install_name_tool -change ${i} @executable_path/../lib/${ii} gnuplot
! 46: done
! 47: #for i in libfreetype.6.dylib libfontconfig.1.dylib
! 48: # for i in libfreetype.6.dylib libfontconfig.1.dylib
! 49: # do
! 50: # cp -f /opt/X11/lib/${i} ../lib
! 51: # echo TO BE DONE 2 `otool -L ../lib/${i} |grep /usr/local/lib|awk -F "[/ ]" '{print $5}'`
! 52: # for j in `otool -L ../lib/${i} |grep /usr/local/lib|awk -F "[/ ]" '{print $5}'`
! 53: # do
! 54: # chmod -R u+rw ../lib
! 55: # cp /opt/X11/lib/${j} ../lib
! 56: # if [ ${i} == ${j} ]; then
! 57: # install_name_tool -id @executable_path/../lib/${j} ../lib/${i}
! 58: # else
! 59: # install_name_tool -change /opt/X11/lib/${j} @executable_path/../lib/${j} ../lib/${i}
! 60: # fi
! 61: # otool -L ../lib/${i}
! 62: # done
! 63: # install_name_tool -change /opt/X11/lib/${i} @executable_path/../lib/${i} gnuplot
! 64: # done
! 65: mv /usr/local/lib /usr/local/libold
! 66: PATH=/usr/bin:/bin:/usr/sbin:/sbin::/Users/nbrouard/bin DYLD_PRINT_LIBRARIES=y ./gnuplot -e "set out 'toto.png'; set ter pngcairo; plot sin(x);"
! 67: exit
! 68:
! 69:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>