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