mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
Minimize binary size and external dependencies in OS X LaunchSLClient.app creation script.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user