Commit in SlacMCPrj/scripts on MAIN | |||
setup-root.sh | +8 | -1 | 1.1 -> 1.2 |
ROOT script will take ROOTSYS from the environment if it is already set
diff -u -r1.1 -r1.2 --- setup-root.sh 11 Jul 2005 18:43:38 -0000 1.1 +++ setup-root.sh 15 Sep 2005 21:52:31 -0000 1.2 @@ -1,5 +1,12 @@
#!/bin/sh
-export ROOTSYS=${PRJ_EXTERN}/root/current
+if [ -z "${ROOTSYS}" ]; then + export ROOTSYS=${PRJ_EXTERN}/root/current +else + echo "ROOTSYS from environment" +fi + +echo "ROOTSYS=$ROOTSYS" +
export PATH=$ROOTSYS/bin:$PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib