-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.sh
executable file
·42 lines (37 loc) · 824 Bytes
/
readme.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
39
40
41
#!/usr/bin/bash
ls|grep wfdb
if ! [ $? -eq 0 ] ; then
wget -c https://www.physionet.org/physiotools/wfdb.tar.gz
tar xfvz wfdb.tar.gz
fi
dwfdb=$(ls|grep wfdb-)
pwd_wfdb=$(pwd)
#pwd_wfdb=${PWD} # for enviromental variable
pushd $dwfdb
./configure --prefix=$pwd_wfdb
make install
make check
popd
yum_cmd=""
if [ -x "$(command -v apt)" ]; then
echo "ubuntu-like"
yum_cmd="apt-get"
elif [ -x "$(command -v dnf)" ]; then
echo "fedora-like"
yum_cmd="dnf"
fi
if ! [ -x "$(command -v swig)" ]; then
sudo $yum_cmd install swig
fi
sudo $yum_cmd install redhat-rpm-config
sudo $yum_cmd install python2-devel
sudo $yum_cnd install python3-devel
sudo $yum_cmd install python2-tkinter
pip install numpy
pip install matplotlib
pushd lib_swig
python setup.py build_ext --inplace
popd
pushd vt_detect
make
popd