annotate tools/human_genome_variation/lps_tool_wrapper.sh @ 1:cdcb0ce84a1b

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