LaunchSLClient 467 B

12345678910111213
  1. #!/bin/sh
  2. PWD=`pwd`
  3. # Fetch the path relative to the launch point where this shell script exists.
  4. APP_PATH=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+3] != "") { if (patharr[idx] != "/") {printf("%s/", patharr[idx]); idx++ }} }'`
  5. # Fetch the app name (its our own name)
  6. APP_NAME=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s", patharr[idx]); }'`
  7. cd "$APP_PATH/Contents/Resources"
  8. ./$APP_NAME