-
Notifications
You must be signed in to change notification settings - Fork 2
/
lmtoy_start.csh.in
40 lines (29 loc) · 1.23 KB
/
lmtoy_start.csh.in
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
# @EDIT_MSG@
# for (t)csh : source this file
setenv LMTOY @LMTOY@
# do python first. this is important if a venv is used (deprecated)
if (-e $LMTOY/python_start.csh) source $LMTOY/python_start.csh
# do python first. this is important if a venv is used (new)
if (-e $LMTOY/anaconda3/python_start.csh) source $LMTOY/anaconda3/python_start.csh
if (-e $LMTOY/lmtoy_venv/bin/activate.csh) source $LMTOY/lmtoy_venv/bin/activate.csh
# remainder of environment
setenv PATH $LMTOY/SpectralLineReduction/bin:$LMTOY/bin:$LMTOY/examples:$PATH
if (-d $LMTOY/Montage/bin) setenv PATH $LMTOY/Montage/bin:$PATH
if (-e $LMTOY/nemo/nemo_start.csh) source $LMTOY/nemo/nemo_start.csh
if ($?ADMIT) then
echo "Warning: ADMIT=$ADMIT present. LMTOY will not behave nicely with ADMIT yet."
endif
# if you want to change this, edit lmtoy_local.csh instead, or use configure correctly
# or for personal settings, use ~/.lmtoy_start.csh
setenv DATA_LMT @DATA_LMT@
setenv WORK_LMT @WORK_LMT@
setenv CORR_CAL_DIR $DATA_LMT/rsr/cal
foreach f ($LMTOY/lmtoy_local.sh $HOME/.lmtoy_start.sh)
if (-e $f) source $f
end
if ( -e $LMTOY/etc/news.txt ) then
echo "Latest news:"
cat $LMTOY/etc/news.txt
else
echo "No news from $LMTOY/etc/news.txt"
endif