Blame view
tools/extras/install_beamformit.sh
1002 Bytes
8dcb6dfcb first commit |
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 |
#!/bin/bash # Installs beamformit from the location https://github.com/xanguera/BeamformIt # libsndfile needed by beamformit [ ! -f libsndfile-1.0.25.tar.gz ] && \ wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz [ ! -d libsndfile-1.0.25 ] && \ tar xzf libsndfile-1.0.25.tar.gz ( cd libsndfile-1.0.25 ./configure --prefix=$PWD make make install ) # building beamformit [ ! -d ./BeamformIt ] && git clone https://github.com/xanguera/BeamformIt ( cd BeamformIt git pull cmake -DLIBSND_INSTALL_DIR=$PWD/../libsndfile-1.0.25 . make ) # add config into env.sh ( [ ! -z "${BEAMFORMIT}" ] && \ echo >&2 "BEAMFORMIT variable is aleady defined. Undefining..." && \ unset BEAMFORMIT [ -f ./env.sh ] && . ./env.sh [ ! -z "${BEAMFORMIT}" ] && \ echo >&2 "BeamformIt config is already in env.sh" && exit wd=`pwd` wd=`readlink -f $wd || pwd` echo "export BEAMFORMIT=$wd/BeamformIt" echo "export PATH=\${PATH}:\${BEAMFORMIT}" ) >> env.sh |