Last change
on this file since 166 was 166, checked in by Nicholas Riley, 18 years ago |
VERSION: Updated for 1.0.1.
main.c: Updated copyright statement. Updated for 1.0.1. Added -U,
triggers OPTS.forceURLs. Added kLSMultipleSessionsNotSupportedErr,
nsvErr. Cleaned up string encoding handling; works much better now.
Split code into stringFromURLIsRemote, utf8StringFromCFStringRef, and
utf8StringFromOSType. Display "contents: zero items" instead of "0
items" in printMoreInfoForURL. Remove extraneous "./" at beginning of
displayed paths. Get versions of non-{applications, packages} and
info from nonbundled apps with CFBundleCopyInfoDictionaryForURL.
Replaced some error codes with numbers so we support building on 10.2
again.
launch.1: Updated for 1.0.1 and -U option.
README: Updated for 1.0.1. Fixed a paste-o in the uninstallation
instructions.
package-launch.sh: Use zsh explicitly. Build as deployment. Fix
permissions. Make tarball contents owned by root/wheel.
|
File size:
1.5 KB
|
Line | |
---|
1 | #!/bin/zsh
|
---|
2 |
|
---|
3 | set -x -v
|
---|
4 |
|
---|
5 | cd launch && \
|
---|
6 | find . -name \*~ -exec rm '{}' \; && \
|
---|
7 | xcodebuild -buildstyle Deployment && \
|
---|
8 | SetFile -c 'R*ch' -t 'TEXT' README VERSION launch.1 && \
|
---|
9 | strip build/launch && \
|
---|
10 | sudo /usr/bin/install -c build/launch /usr/local/bin && \
|
---|
11 | sudo /usr/bin/install -c launch.1 /usr/local/man/man1 && \
|
---|
12 | chmod 755 build/launch && \
|
---|
13 | chmod 644 launch.1 && \
|
---|
14 | rm -rf build/launch.build build/intermediates build/.gdb_history && \
|
---|
15 | VERSION=`cat VERSION` TARBALL="launch-$VERSION.tar.gz" && \
|
---|
16 | DMG="launch-$VERSION.dmg" VOL="launch $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
|
---|
17 | cd .. && \
|
---|
18 | rm -f launch-$VERSION $TARBALL $DMG && \
|
---|
19 | ln -s launch launch-$VERSION && \
|
---|
20 | tar --owner=root --group=wheel --exclude=.DS_Store --exclude=.svn --exclude=.gdb_history -zchf launch-$VERSION.tar.gz launch-$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 && \
|
---|
35 | scp $TARBALL ainaz:web/nriley/software/ #$DMG
|
---|
36 | : |
---|
Note:
See
TracBrowser
for help on using the repository browser.