0
|
1 #!/usr/bin/env bash
|
|
2 # script for execution of deployed applications
|
|
3 #
|
|
4 # Sets up the MCR environment for the current $ARCH and executes
|
|
5 # the specified command.
|
|
6 #
|
|
7
|
|
8 export PATH=$PATH:$(dirname $0)
|
|
9
|
|
10 MCRROOT=${MCRROOT:-/galaxy/software/linux2.6-x86_64/bin/MCR-7.11/v711}
|
|
11 MWE_ARCH=glnxa64
|
|
12
|
|
13 if [ "$MWE_ARCH" = "sol64" ] ; then
|
|
14 LD_LIBRARY_PATH=.:/usr/lib/lwp:${MCRROOT}/runtime/glnxa64
|
|
15 else
|
|
16 LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64
|
|
17 fi
|
|
18
|
|
19 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64
|
|
20 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64
|
|
21
|
|
22 if [ "$MWE_ARCH" = "maci" -o "$MWE_ARCH" = "maci64" ]; then
|
|
23 DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/System/Library/Frameworks/JavaVM.framework/JavaVM:/System/Library/Frameworks/JavaVM.framework/Libraries
|
|
24 else
|
|
25 MCRJRE=${MCRROOT}/sys/java/jre/glnxa64/jre/lib/amd64
|
|
26 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/native_threads
|
|
27 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/server
|
|
28 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/client
|
|
29 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}
|
|
30 fi
|
|
31
|
|
32 XAPPLRESDIR=${MCRROOT}/X11/app-defaults
|
|
33
|
|
34 export LD_LIBRARY_PATH XAPPLRESDIR
|
|
35
|
|
36 lps_tool $*
|
|
37
|
|
38 exit 0
|