Ignore:
Timestamp:
03/10/03 05:48:21 (18 years ago)
Author:
Nicholas Riley
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/package-Pester.sh

    r104 r113  
    11#!/bin/zsh
    22
    3 # stuff to do:
    4 # hdiutil create DiskImage.dmg -megabytes <size> -layout NONE
    5 # hdid -nomount DiskImage.dmg
    6 # sudo /sbin/newfs_hfs -w -v VolumeName -b 4096 /dev/disk2
    7 # hdiutil eject /dev/disk2
    8 
    9 # also check out 'build' on mosxland.sf.net
    10 
    11 # set -x -v
     3#set -x -v
    124
    135PACKAGEDIR="$PWD"
     
    1810rm -f .gdb_history && \
    1911VERSION=`cat VERSION` && \
    20 DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
    21 DSTROOT="$PACKAGEDIR/$VOL" && \
     12DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" DSTROOT="$PACKAGEDIR/$VOL" && \
    2213sudo rm -fr "$DSTROOT" && \
    2314rm -rf build/ && \
     
    2718ditto -rsrc "${PACKAGEDIR}/Read Me" "$DSTROOT" && \
    2819rm -rf "$DSTROOT"/Source/build "${DSTROOT}/Source/Read Me.rtfd" && \
    29 #breaks in 10.2 and later, sigh.
    30 #mkdir "$DSTROOT/Read Me.rtfd" && \
    31 #cd "$DSTROOT/Read Me.rtfd" && \
    32 #for i in "../Pester.app/Contents/Resources/Read Me.rtfd"/*; do ln -s "$i"; done && \
    3320find "$DSTROOT" -name ".svn" -exec sudo /bin/rm -rf "{}" \; ; \
    3421cd "$PACKAGEDIR" && \
    3522rm -f "$DMG" && \
    36 hdiutil create "$DMG" -megabytes 5 -ov -type UDIF && \
    37 DISK=`hdid -nomount "$DMG" | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
    38 newfs_hfs -v "$VOL" "/dev/r${DISK}s2" && \
    39 hdiutil eject "$DISK" && \
    40 hdid "$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'` && \
    4127ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
    4228chmod -R a+rX,u+w "$MOUNTPOINT" && \
    4329openUp "$MOUNTPOINT" && \
    44 # sleep 2 && \
    45 hdiutil eject $DISK && \
    46 # osascript -e "tell application \"Finder\" to eject disk \"$VOL\"" && \
     30hdiutil detach $DISK && \
    4731hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
    4832mv "z$DMG" "$DMG" && \
    4933hdiutil internet-enable "$DMG" && \
    5034scp "$DMG" ainaz:web/nriley/software/ && \
     35cd "$PACKAGEDIR"/Source && \
     36agvtool bump -all && \
    5137:
Note: See TracChangeset for help on using the changeset viewer.