From 3050ec4515478aad6173bc93cf1735c6a1adc8af Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Fri, 27 Jul 2012 07:16:13 -0800 Subject: Editing the version print code to allow setup_environment to be run from any directory [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13554] --- setup_environment | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'setup_environment') diff --git a/setup_environment b/setup_environment index 7e9e4e8..c776fde 100644 --- a/setup_environment +++ b/setup_environment @@ -1,8 +1,9 @@ # see README before running this export GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN= +THIS_DIR="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )" -GPGPUSIM_VERSION_STRING=`cat version | awk '/Version/ {print $8}'` +GPGPUSIM_VERSION_STRING=`cat $THIS_DIR/version | awk '/Version/ {print $8}'` echo "GPGPU-Sim version $GPGPUSIM_VERSION_STRING"; if [ ! -n "$CUDA_INSTALL_PATH" ]; then @@ -28,7 +29,7 @@ else export GPGPUSIM_CONFIG=release fi -export GPGPUSIM_ROOT="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )" +export GPGPUSIM_ROOT=$THIS_DIR export QTINC=/usr/include -- cgit v1.3