Last change
on this file since 212 was 184, checked in by Nicholas Riley, 20 years ago |
package-ICeCoffEE.sh: Disable auto-open as it's distracting now; sudo chmod to work around a Tiger issue with the .Trashes directory.
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | set -x -v
|
---|
4 |
|
---|
5 | PACKAGEDIR="$PWD"
|
---|
6 | PRODUCT="ICeCoffEE"
|
---|
7 |
|
---|
8 | cd "$PRODUCT" && \
|
---|
9 | find . -name \*~ -exec rm '{}' \; && \
|
---|
10 | VERSION=`cat VERSION` && \
|
---|
11 | DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" && \
|
---|
12 | DSTROOT="$PACKAGEDIR/$VOL" && \
|
---|
13 | sudo rm -rf "$DSTROOT" && \
|
---|
14 | sudo rm -rf build/ && \
|
---|
15 | rm -rf build/ && \
|
---|
16 | xcodebuild -target "ICeCoffEE Installer" -buildstyle Deployment "DSTROOT=$DSTROOT" DEPLOYMENT_LOCATION=YES install && \
|
---|
17 | mkdir "$DSTROOT" && \
|
---|
18 | mv "build/$PRODUCT Installer.app" "$DSTROOT/$PRODUCT $VERSION Installer.app" && \
|
---|
19 | sudo rm -rf build/ && \
|
---|
20 | find "$DSTROOT" -name ".svn" -type d -exec sudo /bin/rm -rf "{}" \; ; \
|
---|
21 | cd "$PACKAGEDIR" && \
|
---|
22 | rm -f "$DMG" && \
|
---|
23 | hdiutil create "$DMG" -megabytes 5 -ov -layout NONE -fs 'HFS+' -volname "$VOL" && \
|
---|
24 | MOUNT=`hdiutil attach "$DMG"` && \
|
---|
25 | DISK=`echo "$MOUNT" | sed -ne ' s|^/dev/\([^ ]*\).*$|\1|p'` && \
|
---|
26 | MOUNTPOINT=`echo "$MOUNT" | sed -ne 's|^.*\(/Volumes/.*\)$|\1|p'` && \
|
---|
27 | ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
|
---|
28 | sudo chmod -R a+rX,u+w "$MOUNTPOINT" && \
|
---|
29 | # openUp "$MOUNTPOINT" && \
|
---|
30 | hdiutil detach $DISK && \
|
---|
31 | hdiutil resize -sectors min "$DMG" && \
|
---|
32 | hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
|
---|
33 | mv "z$DMG" "$DMG" && \
|
---|
34 | hdiutil internet-enable "$DMG" && \
|
---|
35 | # scp "$DMG" ainaz:web/nriley/software/
|
---|
36 | :
|
---|
Note:
See
TracBrowser
for help on using the repository browser.