#! /bin/sh xx=`readlink -f "$0"` PgmDir=`dirname "$xx"` if [ -n "$CM_SL" ]; then # Matlab sets LD_LIBRARY_PATH. # This may lead tcl/tk to use the wrong shared libs. unset LD_LIBRARY_PATH fi [ -x "$PgmDir/HIL.exe" ] || PgmDir="`dirname "$PgmDir"`/GUI" if [ -n "$LD_LIBRARY_PATH" ]; then # Make sure, CM internal TCL libraries are loaded export LD_LIBRARY_PATH="$PgmDir:$PgmDir/lib:$LD_LIBRARY_PATH" echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH fi exec "$PgmDir/HIL.exe" -pgmexe "$0" "$@"