source: releases/appswitch/1.0.1/package-appswitch.sh

Last change on this file was 160, checked in by Nicholas Riley, 20 years ago

package-appswitch.sh: replace pbxbuild with xcodebuild; fix permissions

appswitch/appswitch.1: updated for actual release date

appswitch/main.c: updated for 1.0.1; fix PSN width, resolves #1; fix
compiler warning

appswitch/README: updated for actual release date; PB -> Xcode;
updated timings; updated version history

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