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

Last change on this file since 68 was 66, checked in by Nicholas Riley, 22 years ago

Initial import.

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