forked from cavalab/srbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·38 lines (30 loc) · 1.03 KB
/
install.sh
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
# note: make sure conda environment is installed
# before running install. see configure.sh
conda activate srbench
conda info
failed=()
# install methods
echo "///////////////////////////"
echo "installing GP methods..."
echo "///////////////////////////"
# move to methods folder
cd experiment/methods/src/
# install all methods
for install_file in $(ls *.sh) ; do
echo "vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv"
echo "Running $install_file"
echo "////////////////////////////////////////////////////////////////////////////////"
bash $install_file
if [ $? -gt 0 ]
then
failed+=($install_file)
fi
echo "////////////////////////////////////////////////////////////////////////////////"
echo "Finished $install_file"
echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
done
if [ ${#failed[@]} -gt 0 ] ; then
echo "${#failed[@]} installs failed: ${failed}"
else
echo "All installations completed successfully."
fi