macosx_bundle.sh   macosx_bundle.sh 
#!/bin/bash #!/bin/bash
CMAKE_INSTALL_PREFIX=$1 CMAKE_INSTALL_PREFIX=$1
shift; shift;
PROJECT_SOURCE_DIR=$1 PROJECT_SOURCE_DIR=$1
shift; shift;
QTPLUGIN_DIR=""
for d in /Developer/Applications/Qt/plugins /opt/local/share/qt4/plugins; d
o
if [ -e "$d" ]; then
QTPLUGIN_DIR="$d"
break
fi
done
mv ${CMAKE_INSTALL_PREFIX}/bin ${CMAKE_INSTALL_PREFIX}/MacOS mv ${CMAKE_INSTALL_PREFIX}/bin ${CMAKE_INSTALL_PREFIX}/MacOS
if [ -e "${CMAKE_INSTALL_PREFIX}/MacOS/stellarium.app/Contents/MacOS/stella rium" ] ; then if [ -e "${CMAKE_INSTALL_PREFIX}/MacOS/stellarium.app/Contents/MacOS/stella rium" ] ; then
mv ${CMAKE_INSTALL_PREFIX}/MacOS/stellarium.app/Contents/MacOS/stellari um ${CMAKE_INSTALL_PREFIX}/MacOS mv ${CMAKE_INSTALL_PREFIX}/MacOS/stellarium.app/Contents/MacOS/stellari um ${CMAKE_INSTALL_PREFIX}/MacOS
/bin/rm -rf ${CMAKE_INSTALL_PREFIX}/MacOS/stellarium.app /bin/rm -rf ${CMAKE_INSTALL_PREFIX}/MacOS/stellarium.app
fi fi
mv ${CMAKE_INSTALL_PREFIX}/share ${CMAKE_INSTALL_PREFIX}/Resources mv ${CMAKE_INSTALL_PREFIX}/share ${CMAKE_INSTALL_PREFIX}/Resources
mv ${CMAKE_INSTALL_PREFIX}/Resources/stellarium/* ${CMAKE_INSTALL_PREFIX}/R esources mv ${CMAKE_INSTALL_PREFIX}/Resources/stellarium/* ${CMAKE_INSTALL_PREFIX}/R esources
rmdir ${CMAKE_INSTALL_PREFIX}/Resources/stellarium rmdir ${CMAKE_INSTALL_PREFIX}/Resources/stellarium
mkdir ${CMAKE_INSTALL_PREFIX}/Frameworks mkdir ${CMAKE_INSTALL_PREFIX}/Frameworks
/usr/bin/perl util/pkgApp.pl ${CMAKE_INSTALL_PREFIX} MacOS/stellarium Frame works /usr/bin/perl util/pkgApp.pl ${CMAKE_INSTALL_PREFIX} MacOS/stellarium Frame works
mkdir ${CMAKE_INSTALL_PREFIX}/plugins mkdir ${CMAKE_INSTALL_PREFIX}/plugins
cp -pr /Developer/Applications/Qt/plugins/{imageformats,iconengines}/* ${CM
AKE_INSTALL_PREFIX}/plugins cp -pr "$QTPLUGIN_DIR/"{imageformats,iconengines}/* ${CMAKE_INSTALL_PREFIX}
/plugins
for f in ${CMAKE_INSTALL_PREFIX}/plugins/*.dylib; do for f in ${CMAKE_INSTALL_PREFIX}/plugins/*.dylib; do
fdir=`dirname $f` fdir=`dirname $f`
dir=`basename $fdir` dir=`basename $fdir`
base=`basename $f` base=`basename $f`
#/usr/bin/install_name_tool -id "@executable_path/$dir/$base" $f #/usr/bin/install_name_tool -id "@executable_path/$dir/$base" $f
for qt in `otool -L $f | egrep ' Qt' | cut -f 1 -d ' '`; do for qt in `otool -L $f | egrep ' Qt' | cut -f 1 -d ' '`; do
newt="@executable_path/../Frameworks/$qt" newt="@executable_path/../Frameworks/$qt"
/usr/bin/install_name_tool -change $qt $newt $f /usr/bin/install_name_tool -change $qt $newt $f
done done
done done
 End of changes. 2 change blocks. 
2 lines changed or deleted 12 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/