source: trunk/ICeCoffEE/package-ICeCoffEE.sh@ 167

Last change on this file since 167 was 167, checked in by Nicholas Riley, 19 years ago

ICeCoffEE 1.4 and preliminary 1.4.1 changes. Sorry, I forgot to
commit version 1.4 when it was released, so the precise source for
that release has been lost.

See the release notes for details of what changed in these versions.
1.4 was a significant feature release; 1.4.1 is a bug fix for 10.3.9,
incorporating up-to-date Unsanity Installer and APE.

package-ICeCoffEE.sh: use xcodebuild instead of pbxbuild.

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