-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·36 lines (34 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
#!/bin/bash
mkdir temp
g++ -o memsa main.cpp
os=$(uname)
if [ $os == 'Linux' ]; then
# download and install MAFFT
curl -L -O https://mafft.cbrc.jp/alignment/software/mafft-7.520-linux.tgz
tar xfvz mafft-7.520-linux.tgz
rm mafft-7.520-linux.tgz
mv mafft-linux64 mafft
# download and install slaMEM
curl -L -O https://github.com/fjdf/slaMEM/archive/master.tar.gz
tar -xf master.tar.gz
rm master.tar.gz
mv slaMEM-master slaMEM
cd slaMEM
gcc -Wall -Wextra -Wunused -mpopcnt -Wuninitialized -O9 -fomit-frame-pointer -fcommon *.c -o slaMEM -lm
elif [ $os == 'Darwin' ]; then # MacOS
# download and install MAFFT
curl -L -O https://mafft.cbrc.jp/alignment/software/mafft-7.520-mac.zip?signed
unzip mafft-7.520-mac.zip
rm mafft-7.520-mac.zip
mv mafft-mac mafft
# download and install slaMEM
curl -L -O https://github.com/fjdf/slaMEM/archive/master.zip
unzip master.zip
rm master.zip
mv slaMEM-master slaMEM
cd slaMEM
make
else
echo 'OS not supported'
exit 1
fi