forked from nsls-ii-mx/fast_dp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fast_rdp.ini
executable file
·105 lines (93 loc) · 3.24 KB
/
fast_rdp.ini
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
# fast_rdp example initialization script
# this is an example from NSLS-II of an initialization
# script for fast_rdp. If it is found in /etc/fast_rdp,
# the fast_rdp kit from which fast_rdp is being executed
# or in the $HOME/.fast_rdp directory and is executable,
# it will be sourced.
#
echo "fast_rdp: executing NSLS-II fast_rdp initialization"
# NSLS-II paths for fast_rdp initialization
FAST_DP_CCP4=/usr/local/crys-local/ccp4-7.0
#FAST_DP_GCC9=/usr/local/crys-local
FAST_DP_EIGER2CBF=/usr/local/crys-local
FAST_DP_PHENIX=/usr/local/crys-local/phenix-1.17.1-3660
FAST_DP_XDS=/usr/local/crys-local/XDS_19Dec19
if [ "${CCP4}xx" != "${FAST_DP_CCP4}xx" ];
then
if [ -e "${FAST_DP_CCP4}"/setup-scripts/ccp4.setup-sh ];
then
source "${FAST_DP_CCP4}"/setup-scripts/ccp4.setup-sh
echo fast_rdp: source "${FAST_DP_CCP4}"/setup-scripts/ccp4.setup-sh
elif [ -e "${FAST_DP_CCP4}"/bin/ccp4.setup-sh ];
then
source "${FAST_DP_CCP4}"/bin/ccp4.setup-sh
echo fast_rdp: source "${FAST_DP_CCP4}"/bin/ccp4.setup-sh
else
echo fast_rdp: ccp4.setup-sh not found
fi
else
echo "fast_rdp: CCP4 previously initialized at ${FAST_DP_CCP4}"
fi
#if [ "${GCC9}xx" != "${FAST_DP_GCC9}xx" ];
# then
# if [ -e "${FAST_DP_GCC9}"/bin/gcc-9.ini ];
# then
# source "${FAST_DP_GCC9}"/bin/gcc-9.ini
# echo fast_rdp: source "${FAST_DP_GCC9}"/bin/gcc-9.ini
# else
# echo fast_rdp: gcc-9.ini not found
# fi
#else
# echo "fast_dp: GCC9 previously initialized at ${GCC9}"
#fi
if [ "${EIGER2CBF}xx" != "${FAST_DP_EIGER2CBF}xx" ];
then
if [ -e "${FAST_DP_EIGER2CBF}"/bin/eiger2cbf.ini ];
then
source "${FAST_DP_EIGER2CBF}"/bin/eiger2cbf.ini
echo fast_rdp: source "${FAST_DP_EIGER2CBF}"/bin/eiger2cbf.ini
else
echo fast_rdp: eiger2cbf.ini not found
fi
else
echo "fast_dp: EIGER2CBF previously initialized at ${EIGER2CBF}"
fi
if [ "${LD_LIBRARY_PATH}xx" == "xx" ]; then
LD_LIBRARY_PATH=${CCP4}/lib; export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=${CCP4}/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
fi
if [ "${DYLD_LIBRARY_PATH}xx" == "xx" ]; then
DYLD_LIBRARY_PATH=${CCP4}/lib; export DYLD_LIBRARY_PATH
else
DYLD_LIBRARY_PATH=${CCP4}/lib:$DYLD_LIBRARY_PATH; export DYLD_LIBRARY_PATH
fi
if [ "${LD_RUN_PATH}xx" == "xx" ]; then
LD_RUN_PATH=${CCP4}/lib; export LD_RUN_PATH
else
LD_RUN_PATH=${CCP4}/lib:$LD_RUN_PATH; export LD_RUN_PATH
fi
if [ "${PHENIX}xx" != "${FAST_DP_PHENIX}xx" ] && [ "${PHENIX}xx" != "${FAST_DP_PHENIX_old}xx" ];
then
if [ -e "${FAST_DP_PHENIX}"/phenix_env.sh ];
then
source "${FAST_DP_PHENIX}"/phenix_env.sh
echo fast_rdp: source "${FAST_DP_PHENIX}"/phenix_env.sh
elif [ -e "${FAST_DP_PHENIX_old}"/phenix_env.sh ];
then
source "${FAST_DP_PHENIX_old}"/phenix_env.sh
echo fast_rdp: source "${FAST_DP_PHENIX_old}"/phenix_env.sh
else
echo fast_rdp: "${FAST_DP_PHENIX_old}"/phenix_env.sh
echo fast_rdp: phenix_env.sh not found
fi
else
echo "fast_rdp: PHENIX previously initialized at ${PHENIX}"
fi
PLUGIN_NCHILD=4; export PLUGIN_NCHILD;
XDS_PATH="${FAST_DP_XDS}"; export XDS_PATH;
echo XDS_PATH="${FAST_DP_XDS}";
PATH="${XDS_PATH}":$PATH; export PATH;
FAST_DP_LOG_COMPONENT_OFFSETS="-4,-4,-3"; export FAST_DP_LOG_COMPONENT_OFFSETS
echo FAST_DP_LOG_COMPONENT_OFFSETS="-4,-4,-3"