SlacMCPrj/scripts
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 $@