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)
-if [ "$X11_MODE" -eq "1" ]; then
- APP_NAME=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s", patharr[idx]); }'`
-else
- APP_NAME=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s.exe", patharr[idx]); }'`
-fi
+APP_NAME=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s", patharr[idx]); }'`
+ASSEMBLY=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s.exe", patharr[idx]); }'`
# Setup the environment for MWF if needed
if [ "$MWF_MODE" -eq "1" ]; then
if [ "$X11_MODE" -eq "1" ]; then
open-x11 "$APP_NAME"
else
- mono "$APP_NAME"
+ if [ ! -d "./bin" ]; then mkdir bin ; fi
+ if [ -f "./bin/$APP_NAME" ]; then rm -f "./bin/$APP_NAME" ; fi
+ ln -s `which mono` "./bin/$APP_NAME"
+ "./bin/$APP_NAME" "$ASSEMBLY"
fi