a3_ica_run.sh 874 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. # script for execution of deployed applications
  3. #
  4. # Sets up the MATLAB Runtime environment for the current $ARCH and executes
  5. # the specified command.
  6. #
  7. exe_name=$0
  8. exe_dir=`dirname "$0"`
  9. echo "------------------------------------------"
  10. if [ "x$1" = "x" ]; then
  11. echo Usage:
  12. echo $0 \<deployedMCRroot\> args
  13. else
  14. echo Setting up environment variables
  15. MCRROOT="$1"
  16. echo ---
  17. LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ;
  18. LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ;
  19. LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64;
  20. LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/opengl/lib/glnxa64;
  21. export LD_LIBRARY_PATH;
  22. echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH};
  23. shift 1
  24. args=
  25. while [ $# -gt 0 ]; do
  26. token=$1
  27. args="${args} \"${token}\""
  28. shift
  29. done
  30. eval "\"${exe_dir}/a3_ica\"" $args
  31. fi
  32. exit