forked from JeffersonLab/ceInstall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoftenv.csh
54 lines (43 loc) · 1.26 KB
/
softenv.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# As of 3/7/2018 this script require explicit argument
# to set the JLAB_VERSION
# An additional argument can be provided to keep certain user setting
setenv JLAB_ROOT /site/12gev_phys
# Making sure we use one of the supported versions:
if($1 != "2.3" && $1 != "2.2" && $1 != "2.1" && $1 != "2.0" && $1 != "devel") then
echo
echo " Usage: 'source $JLAB_ROOT/softenv.csh <version>'"
echo
echo " Supported Versions: "
echo
echo " - 2.3 "
echo " - 2.2 (production)"
echo " - 2.1 "
echo " - 2.0 "
echo " - devel "
echo; echo
exit
endif
# version is ok, can continue
setenv JLAB_VERSION $1
set OVERWRITE="yes" # will overwrite user settings
# version 2.3 at JLAB has the QT_VERSION set to 5.10.1
if( $1 == "2.3" || $1 == "devel") then
setenv QT_VERSION 5.10.1
set OVERWRITE=keepmine
endif
if( "$2" == "keepmine") then
set OVERWRITE=keepmine
endif
set config_csh="$JLAB_ROOT/$JLAB_VERSION/ce/jlab.csh"
if( -e "$config_csh") then
source "$config_csh" $OVERWRITE
else
echo
echo " Configuration '$1' not available on this machine."
echo " For documentation on the environment please visit https://data.jlab.org "
echo
exit
endif
alias echo 'if($?prompt) echo \!* '
echo \ \>\> For documentation on the environment please visit https://data.jlab.org
echo