source: AE/Installer/trunk/projects/xcode/AE_Installer-GUI/fix_dylibs.sh@ 693

Last change on this file since 693 was 513, checked in by iritscen, 15 years ago

Ooh, commit #29. Updated Mac project files, fixed small About box text glitch.

  • Property svn:executable set to *
File size: 2.6 KB
RevLine 
[386]1#!/bin/bash
2
3WXLIBNAME_ALL=libwx*2.8*.dylib
4BOOSTLIBNAME_ALL=libboost*.dylib
5WX_SUFFIX_MED=2.8.0.dylib
6WX_SUFFIX_LONG=2.8.0.6.0.dylib
7BOOST_SUFFIX=xgcc40-mt-1_39.dylib
8BOOST_SUFFIX_2=xgcc40-mt.dylib
9APPNAME="Installer"
10
[513]11WXLIBDIR=~/Programming/Third-Party/Development/wxMac-2.8.10/build-dynamic-universal-10.6/lib
[386]12BOOSTLIBDIR=~/Programming/Third-Party/Development/boost_1_39_0/build-dynamic-universal
[513]13BINDIR=/Games/Oni-Test/Edition/install/$APPNAME.app/Contents/MacOS
[386]14SYSLIBDIR=/usr/local/lib
15
16
17echo "Copying dynamic libraries to " $BINDIR " ..."
18cp -R $WXLIBDIR/$WXLIBNAME_ALL $BINDIR
19
[513]20for file in `cat ~/Programming/Release/AE_Installer/projects/xcode/AE_Installer-GUI/libnames-boost.txt`
[386]21do
22 cp -R $BOOSTLIBDIR/$file$BOOST_SUFFIX $BINDIR
23 cp -R $BOOSTLIBDIR/$file$BOOST_SUFFIX_2 $BINDIR
24done
25
26cp ~/Programming/Third-Party/Development/libiconv-1.13/build-static-universal/lib/libiconv.2.dylib $BINDIR
27
[513]28for file in `cat ~/Programming/Release/AE_Installer/projects/xcode/AE_Installer-GUI/libnames-wx.txt`
[386]29do
30 echo "Patching " $file "..."
[513]31 for fileother in `cat ~/Programming/Release/AE_Installer/projects/xcode/AE_Installer-GUI/libnames-wx.txt`
[386]32 do
33 # patch all library internal cross references
34 echo " Patching " $fileother " with " $file "..."
35 install_name_tool -change $SYSLIBDIR/$file$WX_SUFFIX_MED @executable_path/$file$WX_SUFFIX_MED $BINDIR/$fileother$WX_SUFFIX_MED
36 done
37 # patch current library itself
38 install_name_tool -id @executable_path/$file$WX_SUFFIX_LONG $BINDIR/$file$WX_SUFFIX_LONG
39 # patch binary
40 echo " Patching " $APPNAME " with " $file "..."
41 install_name_tool -change $SYSLIBDIR/$file$WX_SUFFIX_MED @executable_path/$file$WX_SUFFIX_MED $BINDIR/$APPNAME;
42done
43
[513]44for file in `cat ~/Programming/Release/AE_Installer/projects/xcode/AE_Installer-GUI/libnames-boost.txt`
[386]45do
46 echo "Patching " $file "..."
[513]47 for fileother in `cat ~/Programming/Release/AE_Installer/projects/xcode/AE_Installer-GUI/libnames-boost.txt`
[386]48 do
49 # patch all library internal cross references
50 echo " Patching " $fileother " with " $file "..."
51 install_name_tool -change $file$BOOST_SUFFIX @executable_path/$file$BOOST_SUFFIX $BINDIR/$fileother$BOOST_SUFFIX
52 done
53 # patch current library itself
54 install_name_tool -id @executable_path/$file$BOOST_SUFFIX $BINDIR/$file$BOOST_SUFFIX
55 # patch binary
56 echo " Patching " $APPNAME " with " $file "..."
57 install_name_tool -change $file$BOOST_SUFFIX @executable_path/$file$BOOST_SUFFIX $BINDIR/$APPNAME;
58done
59
60install_name_tool -change /usr/lib/libiconv.2.dylib @executable_path/libiconv.2.dylib $BINDIR/$APPNAME
Note: See TracBrowser for help on using the repository browser.