-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell script to run CoMIK executable added.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
# script for execution of deployed applications | ||
# | ||
# Sets up the MATLAB Runtime environment for the current $ARCH and executes | ||
# the specified command. | ||
# | ||
exe_name=$0 | ||
exe_dir=`dirname "$0"` | ||
echo "------------------------------------------" | ||
if [ "x$1" = "x" ]; then | ||
echo Usage: | ||
echo $0 \<deployedMCRroot\> args | ||
else | ||
echo Setting up environment variables | ||
MCRROOT="$1" | ||
echo --- | ||
LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64; | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/opengl/lib/glnxa64; | ||
export LD_LIBRARY_PATH; | ||
echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH}; | ||
shift 1 | ||
args= | ||
while [ $# -gt 0 ]; do | ||
token=$1 | ||
args="${args} \"${token}\"" | ||
shift | ||
done | ||
eval "\"${exe_dir}/CoMIK\"" $args | ||
fi | ||
exit | ||
|