From f94099b485248ebcaa943a6437fbec86b3fd567c Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Fri, 2 May 2008 03:30:44 +0000 Subject: Minimize binary size and external dependencies in OS X LaunchSLClient.app creation script. --- .../LaunchSLClient.app.skel/Contents/MacOS/LaunchSLClient | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS/LaunchSLClient (limited to 'OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS') 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 @@ +#!/bin/sh + +PWD=`pwd` + +# Fetch the path relative to the launch point where this shell script exists. +APP_PATH=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+3] != "") { if (patharr[idx] != "/") {printf("%s/", patharr[idx]); idx++ }} }'` + +# Fetch the app name (its our own name) +APP_NAME=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s", patharr[idx]); }'` + +cd "$APP_PATH/Contents/Resources" + +./$APP_NAME -- cgit v1.1