-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.sh
More file actions
41 lines (31 loc) · 1.03 KB
/
installer.sh
File metadata and controls
41 lines (31 loc) · 1.03 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
#!/bin/bash
# set -e
rm -rf utils/__pycache__
if [ -z "$1" ]; then
echo "No argument provided."
echo "============================================================"
echo "The argument should be 'prep', 'run', or 'both'."
echo "'prep': install/update homebrew and conda. (sh installer.sh prep)"
echo " 'run': build/launch the project. (sh installer.sh run)"
echo "'both': install/update homebrew and conda, build/launch P2MAT project. (sh installer.sh both)"
echo "============================================================\n"
elif [ "$1" == "prep" ]; then
echo "Running prerequisite installation..."
chmod +x prerequisite.sh
./prerequisite.sh
elif [ "$1" == "run" ]; then
echo "Running P2MAT setup..."
chmod +x p2mat.sh
./p2mat.sh
elif [ "$1" == "both" ]; then
echo "Running prerequisite installation..."
chmod +x prerequisite.sh
./prerequisite.sh
echo " "
echo "Running P2MAT setup..."
chmod +x p2mat.sh
./p2mat.sh
else
echo "Unknown command: $1"
fi
rm -rf utils/__pycache__