diff options
author | Jeff Ames | 2008-05-02 03:30:44 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-02 03:30:44 +0000 |
commit | f94099b485248ebcaa943a6437fbec86b3fd567c (patch) | |
tree | d152fea93945444b67fd9ecb89bac1f7dccf43f2 /OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS | |
parent | * DuplicateOnRay with copy center works in two directions... Still fightin... (diff) | |
download | opensim-SC-f94099b485248ebcaa943a6437fbec86b3fd567c.zip opensim-SC-f94099b485248ebcaa943a6437fbec86b3fd567c.tar.gz opensim-SC-f94099b485248ebcaa943a6437fbec86b3fd567c.tar.bz2 opensim-SC-f94099b485248ebcaa943a6437fbec86b3fd567c.tar.xz |
Minimize binary size and external dependencies in OS X LaunchSLClient.app creation script.
Diffstat (limited to 'OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS')
-rwxr-xr-x | OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS/LaunchSLClient | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS/LaunchSLClient b/OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS/LaunchSLClient new file mode 100755 index 0000000..22acade --- /dev/null +++ b/OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS/LaunchSLClient | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PWD=`pwd` | ||
4 | |||
5 | # Fetch the path relative to the launch point where this shell script exists. | ||
6 | APP_PATH=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+3] != "") { if (patharr[idx] != "/") {printf("%s/", patharr[idx]); idx++ }} }'` | ||
7 | |||
8 | # Fetch the app name (its our own name) | ||
9 | APP_NAME=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s", patharr[idx]); }'` | ||
10 | |||
11 | cd "$APP_PATH/Contents/Resources" | ||
12 | |||
13 | ./$APP_NAME | ||