source: trunk/Cocoa/F-Script Anywhere/package-FSA.sh@ 505

Last change on this file since 505 was 411, checked in by Nicholas Riley, 17 years ago

Packaging cleanup.

File size: 1.2 KB
RevLine 
[7]1#!/bin/zsh
2
3set -x -v
4
5PACKAGEDIR="$PWD"
6PRODUCT="F-Script Anywhere"
7
8cd "$PACKAGEDIR"/Source && \
[411]9source VERSION.xcconfig && \
[7]10find . -name \*~\* -exec rm -r '{}' \; && \
[411]11VERSION=${CURRENT_MARKETING_VERSION} && \
12DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" && \
[7]13DSTROOT="$PACKAGEDIR/$VOL" && \
[411]14sudo rm -rf "$DSTROOT" && \
15sudo rm -rf build/ && \
[7]16rm -rf build/ && \
[411]17xcodebuild -target "Application" -configuration Deployment "DSTROOT=$DSTROOT" DEPLOYMENT_LOCATION=YES install && \
18mkdir "$DSTROOT" && \
19# ditto -rsrc "$PACKAGEDIR"/Source "$DSTROOT"/Source && \
20# rm -rf "$DSTROOT"/Source/build && \
[7]21find "$DSTROOT" -name ".svn" -exec sudo /bin/rm -rf "{}" \; ; \
22cd "$PACKAGEDIR" && \
23rm -f "$DMG" && \
[411]24hdiutil create "$DMG" -megabytes 10 -ov -layout NONE -fs 'HFS+' -volname "$VOL" && \
25MOUNT=`hdiutil attach "$DMG"` && \
26DISK=`echo "$MOUNT" | sed -ne ' s|^/dev/\([^ ]*\).*$|\1|p'` && \
27MOUNTPOINT=`echo "$MOUNT" | sed -ne 's|^.*\(/Volumes/.*\)$|\1|p'` && \
[7]28ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
[411]29sudo chmod -R a+rX,u+w "$MOUNTPOINT" && \
30# openUp "$MOUNTPOINT" && \
31hdiutil detach $DISK && \
[7]32hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
33mv "z$DMG" "$DMG" && \
[411]34hdiutil internet-enable "$DMG" && \
[7]35scp "$DMG" ainaz:web/nriley/software/
Note: See TracBrowser for help on using the repository browser.