-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·116 lines (87 loc) · 2.73 KB
/
Copy pathinstall
File metadata and controls
executable file
·116 lines (87 loc) · 2.73 KB
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
105
106
107
108
109
110
111
112
113
114
#!/usr/bin/env bash
noS=" 0.configure/setup_AD_Directory \
3.prepare_docking_directories/prepare_AD_docking_directory \
4.run_docking/start_all_docking_jobs \
5.analyze_results/generate_AD_results_view \
6.check_status/archive_AD_logs \
6.check_status/get_AD_docking_replica_status \
6.check_status/check_AD_status \
7.package_results/generate_zip_file \
99.cluster_utilities/monitor_and_analyze \
99.cluster_utilities/run_cluster_AAD2_from_CLI.bash \
99.cluster_utilities/submit_and_spawn_monitor \
AD_Get_Status \
AD_Help \
AD_Setup \
AD_Validate "
onlyS=" 1.prepare_antibody/align_antibody/align \
1.prepare_antibody/generate_antibody_pdbqt \
2.prepare_glycan/generate_glycan_pdbqt \
2.prepare_glycan/get_flexible_bond_info \
4.run_docking/run_AD_docking \
5.analyze_results/clustering \
5.analyze_results/plot_results \
5.analyze_results/reorderpdb \
5.analyze_results/write_output \
AD_Evaluate \
AD_Prep_Glycan \
AD_Run_AD \
AD_Run_Core_Serial \
AD_Analyze "
USAGE="""
Usage:
Install <install path> [what to install]
For example,
Install /usr/local
... will install all executables into /usr/local/bin.
And:
Install /programs no-S
... will install executables that do not require the special environment into /programs/bin.
Install ./ only-S
... will install executables that require the special environment into ./bin.
What to Install:
Some executables are able to run on modern machines that are used as controllers for the jobs
that will run on machines with older code. Some executables depend on the older code.
no-S - Do not install executables that needs the special, older, operating environment.
only-S - Only install executables that needs the special, older, operating environment.
[empty] - Same as 'all'.
all - Install all the executables.
"""
if [[ -z "${1}" ]] ; then
echo "Must supply location for installation."
echo "${USAGE}"
exit 1
fi
if [ ! -d "${1}/bin" ] ; then
mkdir ${1}/bin || echo "Cannot make directory ${1}/bin." && exit 1
fi
if [ -z "${2}" ] ; then
toInstall='all'
elif [ "${2}" == "all" ] ; then
toInstall='all'
elif [ "${2}" == "only-S" ] ; then
toInstall='only-S'
elif [ "${2}" == "no-S" ] ; then
toInstall='no-S'
else
echo "Unknown install option: ${2}"
echo "${USAGE}"
exit 1
fi
if [ "${toInstall}" == "only-S" ] ; then
copyMe="${onlyS}"
elif [ "${toInstall}" == "no-S" ] ; then
copyMe="${noS}"
else
copyMe="${noS} \
${onlyS}"
fi
#COMMAND=" cp \\
#${copyMe}
#${1}/bin"
#echo "Command is"
#echo "${COMMAND}"
#eval ${COMMAND}
cp \
${copyMe} \
${1}/bin