Changeset 8 for trunk/llmozlib2/repackage_runtime_mac.sh
- Timestamp:
- 02/29/08 19:32:35 (2 years ago)
- Files:
-
- trunk/llmozlib2/repackage_runtime_mac.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/llmozlib2/repackage_runtime_mac.sh
r1 r8 1 1 #!/bin/bash 2 2 3 # This script adds or updates libllmozlib .dylib in mozilla-universal-darwin.tgz.3 # This script adds or updates libllmozlib2.dylib in mozilla-universal-darwin.tgz. 4 4 sandbox_location="$1" 5 5 6 xcodebuild -project llmozlib2.xcodeproj -target llmozlib2 -configuration 'Release' build 6 7 7 if [ -f build/Release/libllmozlib .dylib ]; then8 echo "libllmozlib .dylib found"8 if [ -f build/Release/libllmozlib2.dylib ]; then 9 echo "libllmozlib2.dylib found" 9 10 else 10 echo "libllmozlib .dylib not found, please build the Release target in llmozlib.xcodeproj"11 echo "libllmozlib2.dylib not found, please build the Release target in llmozlib.xcodeproj" 11 12 exit 1 12 13 fi … … 30 31 (cd mozilla-universal-darwin && tar -zxf ../mozilla-universal-darwin-original.tgz) 31 32 32 echo "Adding libllmozlib .dylib..."33 echo "Adding libllmozlib2.dylib..." 33 34 34 # copy in the latest built version of llmozlib 35 cp ./build/Release/libllmozlib .dylib mozilla-universal-darwin35 # copy in the latest built version of llmozlib2 36 cp ./build/Release/libllmozlib2.dylib mozilla-universal-darwin 36 37 37 38 echo "Removing unneeded pieces..." … … 48 49 echo "Creating mozilla-universal-darwin.tgz..." 49 50 50 # tar up the runtime and llmozlib 51 # tar up the runtime and llmozlib2 51 52 rm -f ./mozilla-universal-darwin.tgz 52 53 tar -zcf ./mozilla-universal-darwin.tgz \ … … 62 63 63 64 echo "Copying stub library to $sandbox_location/libraries/universal-darwin/..." 64 cp build/Release_stub/libllmozlib .dylib $sandbox_location/libraries/universal-darwin/lib_debug/libllmozlib.dylib65 cp build/Release_stub/libllmozlib .dylib $sandbox_location/libraries/universal-darwin/lib_release/libllmozlib.dylib65 cp build/Release_stub/libllmozlib2.dylib $sandbox_location/libraries/universal-darwin/lib_debug/libllmozlib2.dylib 66 cp build/Release_stub/libllmozlib2.dylib $sandbox_location/libraries/universal-darwin/lib_release/libllmozlib2.dylib 66 67 67 68 echo "done!"
