forked from nsls-ii-mx/fast_dp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfast_dp.ini
executable file
·81 lines (72 loc) · 2.58 KB
/
fast_dp.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
#!/bin/bash
# fast_dp example initialization script
# this is an example from NSLS-II of an initialization
# script for fast_dp. If it is found in /etc/fast_dp,
# the fast_dp kit from which fast_dp is being executed
# or in the $HOME/.fast_dp directory and is executable,
# it will be sourced.
#
echo "fast_dp: executing CHESS fast_dp initialization"
# CHESS paths for fast_dp initialization
# FAST_DP_CCP4=/nfs/chess/sw/macchess/ccp4/ccp4-7.0
# FAST_DP_PHENIX=/nfs/chess/sw/macchess/phenix/phenix-1.13-2998/
# FAST_DP_PHENIX_old=/nfs/chess/sw/macchess/phenix/phenix-1.13-2998/
# FAST_DP_XDS=/nfs/chess/sw/macchess/xds/
FAST_DP_CCP4=/Applications/ccp4-7.0
FAST_DP_PHENIX=/Users/af554/phenix/phenix-1.12-2829/
FAST_DP_PHENIX_old=/Users/af554/phenix/phenix-1.12-2829/
FAST_DP_XDS=/Users/af554/XDS-OSX_64/xds
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_dp: 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_dp: source "${FAST_DP_CCP4}"/bin/ccp4.setup-sh
else
echo fast_dp: ccp4.setup-sh not found
fi
else
echo "fast_dp: CCP4 previously initialized at ${FAST_DP_CCP4}"
fi
if [ "${LD_LIBRARY_PATH}xx" == "xx" ]; then
export LD_LIBRARY_PATH=${CCP4}/lib
else
export LD_LIBRARY_PATH=${CCP4}/lib:$LD_LIBRARY_PATH
fi
if [ "${DYLD_LIBRARY_PATH}xx" == "xx" ]; then
export DYLD_LIBRARY_PATH=${CCP4}/lib
else
export DYLD_LIBRARY_PATH=${CCP4}/lib:$DYLD_LIBRARY_PATH
fi
if [ "${LD_RUN_PATH}xx" == "xx" ]; then
export LD_RUN_PATH=${CCP4}/lib
else
export LD_RUN_PATH=${CCP4}/lib:$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_dp: 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_dp: source "${FAST_DP_PHENIX_old}"/phenix_env.sh
else
echo fast_dp: "${FAST_DP_PHENIX_old}"/phenix_env.sh
echo fast_dp: phenix_env.sh not found
fi
else
echo "fast_dp: 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;
export FAST_DP_LOG_COMPONENT_OFFSETS="-1,-1,-1"
echo FAST_DP_LOG_COMPONENT_OFFSETS="-1,-1,-1"