source: trunk/Cocoa/Pester/package-Pester.sh @ 113

Last change on this file since 113 was 113, checked in by Nicholas Riley, 18 years ago

PSTimer.m: Fix bug 15, leaking PSTimer from NSInvocation argument retention.

Read Me.rtfd: Updated release notes.

PSAlarm.[hm]: Removed obsolete comment. Changed 1m-59m times to
display without `0h'. Moved code from deserialization to -resetTimer
to be used for alarm deletion undo - fix bug 14.

PSAlarmsController.m: Fix bug 14 - implement _restoreAlarms:,
_removeAlarms and _undoManager. Need to add localized string.

PSAlarmAlertController.m: Fix bug 17, move alert triggering from
constructor to -performAlertsForAlarm: to avoid nested notifications
delivering in wrong order.

PSAlarms.[hm]: Fix bug 14 - implement -restoreAlarms, invokes [PSAlarm
resetTimer]. Clarified a comment. Uncommented some debug logging.

package-Pester.sh: Implemented partition map-less disk image, saves a
few K on distribution. Removed obsolete comments. Added agvtool
bump.

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