Skip to content

Commit

Permalink
test: desparate echos
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 19, 2023
1 parent e396d4b commit af3b864
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions bin/env.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
#!/bin/sh

thisEnv=${BASH_SOURCE[0]:-$0}
export CLAS12DIR=$(realpath $(dirname $thisEnv)/..)




export CLAS12DIR=$(realpath $(dirname $0)/..)
echo "CLAS12DIR = $CLAS12DIR"




# Set default field maps (but do not override user's env):
if [ -z "$COAT_MAGFIELD_TORUSMAP" ]; then
export COAT_MAGFIELD_TORUSMAP=Symm_torus_r2501_phi16_z251_24Apr2018.dat
Expand All @@ -24,8 +16,11 @@ fi

# additional environment variables for groovy or interactive use
# - call as `source $0 groovy` or `source $0 jshell`
echo "1 = $1"
if [ $# -ge 1 ]; then
echo "CALLED WITH $1"
if [ "$1" = "groovy" -o "$1" = "jshell" ]; then
echo "HERE 1"

# add jar files to class path
for lib in clas services utils; do
Expand All @@ -36,6 +31,7 @@ if [ $# -ge 1 ]; then

# additional variables and settings for groovy
if [ "$1" = "groovy" ]; then
echo "HERE 2"
JYPATH="${JYPATH:+${JYPATH}:}${CLAS12DIR}/lib/packages"
export JAVA_OPTS="-Dsun.java2d.pmoffscreen=false -Djava.util.logging.config.file=$CLAS12DIR/etc/logging/debug.properties -Xms1024m -Xmx2048m -XX:+UseSerialGC"
fi
Expand Down
2 changes: 1 addition & 1 deletion bin/run-groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

source `dirname $0`/env.sh groovy
. `dirname $0`/env.sh groovy

echo """
****************************************
Expand Down

0 comments on commit af3b864

Please sign in to comment.