Commit in SlacMCPrj/scripts on MAIN
run-slic.sh+10-71.4 -> 1.5
JM: Make SLIC run script use binary at SLIC_BASE if set.

SlacMCPrj/scripts
run-slic.sh 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- run-slic.sh	27 Mar 2006 21:38:43 -0000	1.4
+++ run-slic.sh	16 Sep 2006 02:07:58 -0000	1.5
@@ -1,14 +1,17 @@
 #!/bin/sh
 
-if [ -z "${SLIC_BASE}" ]; then
-  echo "ERROR: SLIC_BASE is not set."
-  exit 1
-fi
+slic_run=$PRJ_DIST/SimDist/pro/scripts/slic.sh
 
-if [ -z "${G4SYSTEM}" ]; then
-  echo "ERROR: G4SYSTEM is not set."
+if [ -n "${SLIC_BASE}" ]; then
+  slic_run=${SLIC_BASE}/bin/Linux-g++/slic 
 fi
 
+#if [ -z "${G4SYSTEM}" ]; then
+#  echo "ERROR: G4SYSTEM is not set."
+#fi
+
 source setup-geant4-data.sh
 
-exec ${SLIC_BASE}/bin/${G4SYSTEM}/slic $@
+echo "Executing $slic_run ..."
+
+exec $slic_run $@
CVSspam 0.2.8