further speedup during load. positions of branches are saved (again)
3 # Link application bundle to QT as framework
5 # written by Uwe Drechsel (c) 2006
12 FWORKS=$BUNDLE/Contents/Frameworks
13 QTDIR=/usr/local/Trolltech/Qt-4.2.0
20 echo ***Cleaning up...
34 echo ***Setting identification names...
37 COM="install_name_tool -id @executable_path/../Frameworks/$i.framework/Versions/4/$i $BUNDLE/Contents/Frameworks/$i.framework/Versions/4/$i"
42 echo ***Tell dynamic linker where to look for frameworks...
45 COM="install_name_tool -change $QTLIB/$i.framework/Versions/4/$i @executable_path/../Frameworks/$i.framework/Versions/4/$i $BUNDLE/Contents/MacOs/$APPNAME"
51 for fw in ${FWLIST[@]}
53 echo ***Adjust dynamic linking in $fw
54 for i in ` otool -L vym.app/Contents/Frameworks/$fw.framework/$fw | grep Trolltech | sed "s/^.*\///" | sed "s/ .*$//"`
56 COM="install_name_tool -change $QTLIB/$i.framework/Versions/4/$i @executable_path/../Frameworks/$i.framework/Versions/4/$i $FWORKS/$fw.framework/$fw"
64 function copyFrameworks
66 # Copy found frameworks into bundle, preserve symbolic links with -R
70 echo ***Copying $QTLIB/$i.framework
71 #cp -R $QTLIB/$i.framework $FWORKS
72 rsync -avz $QTLIB/$i.framework $FWORKS --exclude 'Qt*_debug'
76 function copyRessources
78 echo ***Copying ressources
79 mkdir -p $BUNDLE/Contents/Resources
80 cp -r icons flags scripts styles vym.app/Contents/Resources/
81 cp icons/vym.icns $BUNDLE/Contents/Resources
84 function findFrameworks
86 FWLIST=`otool -L $BUNDLE/Contents/MacOS/$APPNAME | grep Trolltech | sed "s/^.*\///" | sed "s/ .*$//"`
87 #FWLIST=( Qt3Support QtSql QtNetwork QtXml QtGui QtCore )
89 echo ***The following Qt frameworks are needed: