added Lipo script for OSX

metadata
Wenzel Jakob 2012-09-28 22:50:11 -04:00
parent 8f25f1ee46
commit 18cade3dae
1 changed files with 19 additions and 0 deletions

19
data/darwin/lipo.sh Executable file
View File

@ -0,0 +1,19 @@
rm -Rf Mitsuba.app
cp -R Mitsuba64.app/ Mitsuba.app
for i in Mitsuba32.app/plugins/*; do
base=$(basename $i)
echo "Running lipo on $base"
lipo -create Mitsuba32.app/plugins/$base Mitsuba64.app/plugins/$base -output Mitsuba.app/plugins/$base
done
for i in Mitsuba32.app/Contents/MacOS/*; do
base=$(basename $i)
echo "Running lipo on $base"
lipo -create Mitsuba32.app/Contents/MacOS/$base Mitsuba64.app/Contents/MacOS/$base -output Mitsuba.app/Contents/MacOS/$base
done
for i in Mitsuba32.app/Contents/Frameworks/libmitsuba*; do
base=$(basename $i)
echo "Running lipo on $base"
lipo -create Mitsuba32.app/Contents/Frameworks/$base Mitsuba64.app/Contents/Frameworks/$base -output Mitsuba.app/Contents/Frameworks/$base
done
lipo -create Mitsuba32.app/python/2.6/mitsuba.so Mitsuba64.app/python/2.6/mitsuba.so -output Mitsuba.app/python/2.6/mitsuba.so
lipo -create Mitsuba32.app/python/2.7/mitsuba.so Mitsuba64.app/python/2.7/mitsuba.so -output Mitsuba.app/python/2.7/mitsuba.so