From b12ce54d295f38d2073da092154fb71dc8129ec5 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 5 Aug 2011 15:35:04 +0200 Subject: [PATCH] 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). --- pipepar/setup_environment | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 pipepar/setup_environment diff --git a/pipepar/setup_environment b/pipepar/setup_environment new file mode 100755 index 0000000..1ea17e8 --- /dev/null +++ b/pipepar/setup_environment @@ -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