diff tools/human_genome_variation/lps_tool_wrapper.sh @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/human_genome_variation/lps_tool_wrapper.sh	Fri Mar 09 19:37:19 2012 -0500
@@ -0,0 +1,38 @@
+#!/usr/bin/env bash
+# script for execution of deployed applications
+#
+# Sets up the MCR environment for the current $ARCH and executes 
+# the specified command.
+#
+
+export PATH=$PATH:$(dirname $0)
+
+MCRROOT=${MCRROOT:-/galaxy/software/linux2.6-x86_64/bin/MCR-7.11/v711}
+MWE_ARCH=glnxa64
+
+if [ "$MWE_ARCH" = "sol64" ] ; then
+  LD_LIBRARY_PATH=.:/usr/lib/lwp:${MCRROOT}/runtime/glnxa64
+else
+  LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64
+fi
+
+LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64
+LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64
+
+if [ "$MWE_ARCH" = "maci" -o "$MWE_ARCH" = "maci64" ]; then
+  DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/System/Library/Frameworks/JavaVM.framework/JavaVM:/System/Library/Frameworks/JavaVM.framework/Libraries
+else
+  MCRJRE=${MCRROOT}/sys/java/jre/glnxa64/jre/lib/amd64
+  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/native_threads
+  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/server
+  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/client
+  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}
+fi
+
+XAPPLRESDIR=${MCRROOT}/X11/app-defaults
+
+export LD_LIBRARY_PATH XAPPLRESDIR
+
+lps_tool $*
+
+exit 0