Print

Print


Commit in SimDist/scripts on MAIN
bdsim.sh.in+40added 1.1
JM: BDSIM run script.

SimDist/scripts
bdsim.sh.in added at 1.1
diff -N bdsim.sh.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ bdsim.sh.in	15 Sep 2006 21:13:05 -0000	1.1
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+#
+# Portable run script for SLIC.
+#
+# Directory resolution is taken from the Apache Ant run script at src/script/ant .
+#
+
+# name of script
+PRG="$0"
+
+# directory of script
+progname=`basename "$0"`
+
+# resolve relative symlinks
+while [ -h "$PRG" ] ; do
+  ls=`ls -ld "$PRG"`
+  link=`expr "$ls" : '.*-> \(.*\)$'`
+  if expr "$link" : '/.*' > /dev/null; then
+    PRG="$link"
+  else
+    PRG=`dirname "$PRG"`"/$link"
+  fi
+done
+
+# sim dir is one back from scripts
+SIM_HOME=`dirname "$PRG"`/..
+
+# make it fully qualified
+SIM_HOME=`cd "$SIM_HOME" && pwd`
+
+# slic base
+BDSIM_BASE=${SIM_HOME}/packages/bdsim/@BDSIM_VERSION@
+
+# xerces lib
+PARSER_LIB_DIR=${BDSIM_BASE}/parser
+export @OS_SHARED_LIBS_VAR@=${PARSER_LIB_DIR}:$@OS_SHARED_LIBS_VAR@
+
+# Run BDSIM with CL args.
+${BDSIM_BASE}/bin/@G4SYSTEM@/bdsim $@
CVSspam 0.2.8