Commit the script to setup the environment

Commit setup_environment which sets up the PATH and LD_LIBRARY_PATH to
find the toolchain (modified gcc) and libraries (openmp).
This commit is contained in:
Thomas Preud'homme 2011-08-05 15:35:04 +02:00 committed by Thomas Preud'homme
parent 09ed8e7bc3
commit b12ce54d29
1 changed files with 11 additions and 0 deletions

11
pipepar/setup_environment Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
set -u
export PATH=${PATH##*:}:${PATH%:*}
ompLibDir=${PATH%%:*}
ompLibDir=${ompLibDir%/bin}/lib64
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}$ompLibDir
zsh