-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlmtoy_start.sh.in
57 lines (42 loc) · 1.33 KB
/
lmtoy_start.sh.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# @EDIT_MSG@
# for (ba)sh : source this file
export LMTOY=@LMTOY@
export PATH=$LMTOY/SpectralLineReduction/bin:$LMTOY/bin:$LMTOY/examples:$PATH
# do python first. this is important if a venv is used (deprecated)
if [ -e $LMTOY/python_start.sh ]; then
source $LMTOY/python_start.sh
fi
# do python first. this is important if a venv is used (new)
if [ -e $LMTOY/anaconda3/python_start.sh ]; then
source $LMTOY/anaconda3/python_start.sh
fi
if [ -e $LMTOY/lmtoy_venv/bin/activate ]; then
source $LMTOY/lmtoy_venv/bin/activate
fi
# remainder of environment
if [ -d $LMTOY/Montage/bin ]; then
export PATH=$LMTOY/Montage/bin:$PATH
fi
if [ -e $LMTOY/nemo/nemo_start.sh ]; then
source $LMTOY/nemo/nemo_start.sh
fi
if [ ! -z $ADMIT ]; then
echo "Warning: ADMIT=$ADMIT present. LMTOY will not behave nicely with ADMIT yet."
fi
# if you want to change this, edit lmtoy_local.sh instead, or use configure correctly
# or for personal settings, use ~/.lmtoy_start.sh
export DATA_LMT=@DATA_LMT@
export WORK_LMT=@WORK_LMT@
export WORK_LMT_BASE=@WORK_LMT@
export CORR_CAL_DIR=$DATA_LMT/rsr/cal
for f in $LMTOY/lmtoy_local.sh $HOME/.lmtoy_start.sh; do
if [ -e $f ]; then
source $f
fi
done
if [ -e $LMTOY/etc/news.txt ]; then
echo "Latest news:"
cat $LMTOY/etc/news.txt
else
echo "No news from $LMTOY/etc/news.txt"
fi