Last change
on this file since 432 was 385, checked in by Nicholas Riley, 17 years ago |
package-ICeCoffEE.sh: get version from VERSION.xcconfig
|
File size:
1.4 KB
|
Rev | Line | |
---|
[66] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | set -x -v
|
---|
| 4 |
|
---|
| 5 | PACKAGEDIR="$PWD"
|
---|
| 6 | PRODUCT="ICeCoffEE"
|
---|
| 7 |
|
---|
| 8 | cd "$PRODUCT" && \
|
---|
[385] | 9 | source VERSION.xcconfig && \
|
---|
[66] | 10 | find . -name \*~ -exec rm '{}' \; && \
|
---|
[385] | 11 | VERSION=${CURRENT_MARKETING_VERSION} && \
|
---|
[110] | 12 | DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" && \
|
---|
[66] | 13 | DSTROOT="$PACKAGEDIR/$VOL" && \
|
---|
[169] | 14 | sudo rm -rf "$DSTROOT" && \
|
---|
[66] | 15 | sudo rm -rf build/ && \
|
---|
| 16 | rm -rf build/ && \
|
---|
[216] | 17 | xcodebuild -target "ICeCoffEE Installer" -configuration Deployment "DSTROOT=$DSTROOT" DEPLOYMENT_LOCATION=YES install && \
|
---|
[169] | 18 | mkdir "$DSTROOT" && \
|
---|
[216] | 19 | mv "build/Deployment/$PRODUCT Installer.app" "$DSTROOT/$PRODUCT $VERSION Installer.app" && \
|
---|
[66] | 20 | sudo rm -rf build/ && \
|
---|
[216] | 21 | find "$DSTROOT" -name ".svn" -type d -exec sudo /bin/rm -rf "{}" \;
|
---|
| 22 | # uncomment to include localizations
|
---|
| 23 | find "$DSTROOT" -name \*.lproj -type d -and -not -name English.lproj -exec sudo rm -rf "{}" \;
|
---|
[66] | 24 | cd "$PACKAGEDIR" && \
|
---|
| 25 | rm -f "$DMG" && \
|
---|
[110] | 26 | hdiutil create "$DMG" -megabytes 5 -ov -layout NONE -fs 'HFS+' -volname "$VOL" && \
|
---|
| 27 | MOUNT=`hdiutil attach "$DMG"` && \
|
---|
| 28 | DISK=`echo "$MOUNT" | sed -ne ' s|^/dev/\([^ ]*\).*$|\1|p'` && \
|
---|
| 29 | MOUNTPOINT=`echo "$MOUNT" | sed -ne 's|^.*\(/Volumes/.*\)$|\1|p'` && \
|
---|
[66] | 30 | ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
|
---|
[184] | 31 | sudo chmod -R a+rX,u+w "$MOUNTPOINT" && \
|
---|
| 32 | # openUp "$MOUNTPOINT" && \
|
---|
[110] | 33 | hdiutil detach $DISK && \
|
---|
[115] | 34 | hdiutil resize -sectors min "$DMG" && \
|
---|
[66] | 35 | hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
|
---|
| 36 | mv "z$DMG" "$DMG" && \
|
---|
| 37 | hdiutil internet-enable "$DMG" && \
|
---|
[167] | 38 | # scp "$DMG" ainaz:web/nriley/software/
|
---|
[66] | 39 | :
|
---|
Note:
See
TracBrowser
for help on using the repository browser.