# # Sets up the MCR environment for the current $ARCH. # MCRROOT=/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/MATLAB_Compiler_Runtime/v713 MACAPP="" PLATFORM=`uname` HARDWARE=`uname -m` if [ "$HARDWARE" = "i386" -o "$HARDWARE" = "i686" ]; then MWE_ARCH="glnx86" MWE_JRE="i386" elif [ "$HARDWARE" = "x86_64" ]; then MWE_ARCH="glnxa64" MWE_JRE="amd64" else echo "Unknown platform ${PLATFORM}-${HARDWARE}" return fi LD_LIBRARY_PATH=.:${MCRROOT}/runtime/${MWE_ARCH} LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/${MWE_ARCH} LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/${MWE_ARCH} MCRJRE=${MCRROOT}/sys/java/jre/${MWE_ARCH}/jre/lib/${MWE_JRE} 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} export LD_LIBRARY_PATH XAPPLRESDIR=${MCRROOT}/X11/app-defaults export XAPPLRESDIR if [ "$XUSERFILESEARCHPATH" != "" ]; then XUSERFILESEARCHPATH=$XUSERFILESEARCHPATH:$XAPPLRESDIR/%N export XUSERFILESEARCHPATH fi PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/usr/bin:$PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/usr/lib64:$LD_LIBRARY_PATH" export PATH LD_LIBRARY_PATH PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/bin:/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/bin:$PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/lib:/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.99.x86_64/jre/lib/amd64/headless:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.99.x86_64/jre/lib/amd64/xawt:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.99.x86_64/jre/lib/amd64/headless:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.99.x86_64/jre/lib/amd64/xawt:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/cvmfs/neugrid.egi.eu/software/x86_64/spm-12_r6225/fakerpmroot/usr/lib64:$LD_LIBRARY_PATH" export PATH LD_LIBRARY_PATH