aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel')
-rw-r--r--OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/Info.plist12
-rwxr-xr-xOpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/MacOS/LaunchSLClient13
2 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/Info.plist b/OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/Info.plist
new file mode 100644
index 0000000..7139350
--- /dev/null
+++ b/OpenSim/Tools/LaunchSLClient/LaunchSLClient.app.skel/Contents/Info.plist
@@ -0,0 +1,12 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3<plist version="1.0">
4<dict>
5 <key>CFBundleIdentifier</key>
6 <string>LaunchSLClient</string>
7 <key>CFBundleExecutable</key>
8 <string>LaunchSLClient</string>
9 <key>CFBundleIconFile</key>
10 <string></string>
11</dict>
12</plist>
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
3PWD=`pwd`
4
5# Fetch the path relative to the launch point where this shell script exists.
6APP_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)
9APP_NAME=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s", patharr[idx]); }'`
10
11cd "$APP_PATH/Contents/Resources"
12
13./$APP_NAME