#!/bin/bash

echo "Installing the required dependencies"
set -e 
sudo apt-get -y install git-core autoconf automake make libtool g++ python-dev swig \
pkg-config libboost1.55-all-dev libfftw3-dev libcppunit-dev libgsl0-dev \
libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy \
python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev \
libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev \
python-serial python-matplotlib 

sudo apt-get install build-dep python-scipy

echo "Sciscipy installation starting"
git clone https://github.com/manojgudi/sciscipy-1.0.0.git
cd sciscipy-1.0.0/
sudo ./install

cd .. 
sudo dpkg -i sandhi-1.0.deb
sudo ldconfig
sudo echo "export GRC_BLOCKS_PATH=/usr/local/share/gnuradio/grc/blocks" >> /etc/environment

source /etc/environment

