From 4d42d67ac8ba359f209ca044aa118de8d11958ae Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Mon, 25 Aug 2014 12:01:45 -0400
Subject: [PATCH] Restore correct version of setup.csh

---
 setup.csh | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)

diff --git a/setup.csh b/setup.csh
index 8bbc406..d7df18c 100644
--- a/setup.csh
+++ b/setup.csh
@@ -2,29 +2,17 @@
 
 set called=($_)
 if ("$called" != "") then
-set scriptdir=$called[2]
-  echo $scriptdir
-# set MYDIR=`dirname $scriptdir`
-# set MYDIR=`cd $MYDIR && pwd` # ensure absolute path
-
-  set MYDIR=`pwd` # ensure absolute path
-
-# echo $MYDIR
-# echo "Are we here"
+  set scriptdir=$called[2]
+  set MYDIR=`dirname $scriptdir`
+  set MYDIR=`cd $MYDIR && pwd`    # ensure absolute path
 else
-set scriptdir=$1
+  set scriptdir=$1
   set MYDIR=$scriptdir
 endif
-
-
 setenv ANALYZER $MYDIR/podd
 setenv HCANALYZER $MYDIR
-
 # Check if LD_LIBRARY_PATH is defined
 if ( ! ($?LD_LIBRARY_PATH) ) then
-setenv LD_LIBRARY_PATH ""
+   setenv LD_LIBRARY_PATH ""
 endif
 setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${ANALYZER}:${HCANALYZER}"
-
-echo $ANALYZER
-echo $HCANALYZER
-- 
GitLab