source: trunk/Cocoa/F-Script Anywhere/package-FSA.sh@ 325

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

F-Script Anywhere 1.1.2a1

File size: 1.4 KB
RevLine 
[7]1#!/bin/zsh
2
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
11set -x -v
12
13PACKAGEDIR="$PWD"
14PRODUCT="F-Script Anywhere"
15
16cd "$PACKAGEDIR"/Source && \
17find . -name \*~\* -exec rm -r '{}' \; && \
18VERSION=`cat VERSION` && \
19DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
20DSTROOT="$PACKAGEDIR/$VOL" && \
21sudo rm -fr "$DSTROOT" && \
22rm -rf build/ && \
23pbxbuild install "DSTROOT=$DSTROOT" && \
24ditto -rsrc "$PACKAGEDIR"/Source "$DSTROOT"/Source && \
25rm -rf "$DSTROOT"/Source/build && \
26find "$DSTROOT" -name ".svn" -exec sudo /bin/rm -rf "{}" \; ; \
27cd "$PACKAGEDIR" && \
28rm -f "$DMG" && \
29hdiutil create "$DMG" -megabytes 5 -ov -type UDIF && \
30DISK=`hdid -nomount "$DMG" | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
31newfs_hfs -v "$VOL" "/dev/r${DISK}s2" && \
32hdiutil eject "$DISK" && \
33hdid "$DMG" && \
34ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
35chmod -R a+rX,u+w "$MOUNTPOINT" && \
36openUp "$MOUNTPOINT" && \
37# sleep 2 && \
38hdiutil eject $DISK && \
39# osascript -e "tell application \"Finder\" to eject disk \"$VOL\"" && \
40hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
41mv "z$DMG" "$DMG" && \
42scp "$DMG" ainaz:web/nriley/software/
Note: See TracBrowser for help on using the repository browser.