Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | set -x -v
|
---|
4 |
|
---|
5 | cd launch && \
|
---|
6 | find . -name \*~ -exec rm '{}' \; && \
|
---|
7 | pbxbuild && \
|
---|
8 | SetFile -c 'R*ch' -t 'TEXT' README VERSION && \
|
---|
9 | strip build/launch && \
|
---|
10 | sudo /usr/bin/install -c build/launch /usr/local/bin && \
|
---|
11 | rm -rf build/launch.build build/intermediates build/.gdb_history && \
|
---|
12 | VERSION=`cat VERSION` TARBALL="launch-$VERSION.tar.gz" && \
|
---|
13 | DMG="launch-$VERSION.dmg" VOL="launch $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
|
---|
14 | cd .. && \
|
---|
15 | rm -f launch-$VERSION $TARBALL $DMG && \
|
---|
16 | ln -s launch launch-$VERSION && \
|
---|
17 | tar --exclude=.DS_Store -zchf launch-$VERSION.tar.gz launch-$VERSION && \
|
---|
18 | #hdiutil create $DMG -megabytes 5 -ov -type UDIF && \
|
---|
19 | #DISK=`hdid $DMG | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
|
---|
20 | #newfs_hfs -v "$VOL" /dev/r${DISK}s2 && \
|
---|
21 | #hdiutil eject $DISK && \
|
---|
22 | #hdid $DMG && \
|
---|
23 | #ditto -rsrc launch "$MOUNTPOINT" && \
|
---|
24 | #ditto -rsrc "InstallAnywhere/launch_Web_Installers/InstData/MacOSX/Install launch $VERSION.sit" "/Volumes/launch $VERSION" && \
|
---|
25 | #launch "$MOUNTPOINT/Install launch $VERSION.sit" && \
|
---|
26 | #./openUp "$MOUNTPOINT" && \
|
---|
27 | #sleep 2 && \
|
---|
28 | ## hdiutil eject $DISK && \ # this doesn't work
|
---|
29 | #osascript -e "tell application \"Finder\" to eject disk \"$VOL\"" && \
|
---|
30 | #hdiutil convert $DMG -format UDZO -o z$DMG && \
|
---|
31 | #mv z$DMG $DMG && \
|
---|
32 | scp $TARBALL ainaz:web/nriley/software/ #$DMG |
---|
Note:
See
TracBrowser
for help on using the repository browser.