#!/bin/sh
cd `dirname $0`
cdir=${PWD}

wget http://sourceforge.net/projects/omniorb/files/omniORB/omniORB-4.1.7/omniORB-4.1.7.tar.bz2
wget http://sourceforge.net/projects/omniorb/files/omniORBpy/omniORBpy-3.7/omniORBpy-3.7.tar.bz2
wget http://www.openrtm.org/pub/OpenRTM-aist/cxx/1.1.1/OpenRTM-aist-1.1.1.tar.gz
wget http://www.openrtm.org/pub/OpenRTM-aist/python/1.1.0/OpenRTM-aist-Python-1.1.0-RELEASE.tar.gz
wget -O rtctree-4.0.0.tar.gz https://github.com/gbiggs/rtctree/archive/v4.0.0.tar.gz
wget -O rtsprofile-4.0.0.tar.gz https://github.com/gbiggs/rtsprofile/archive/v4.0.0.tar.gz
wget -O rtshell-4.0.0.tar.gz https://github.com/gbiggs/rtshell/archive/v4.0.0.tar.gz

tar -xf omniORB-4.1.7.tar.bz2
tar -xf omniORBpy-3.7.tar.bz2
tar -xf OpenRTM-aist-1.1.1.tar.gz
tar -xf OpenRTM-aist-Python-1.1.0-RELEASE.tar.gz
tar -xf rtctree-4.0.0.tar.gz
tar -xf rtsprofile-4.0.0.tar.gz
tar -xf rtshell-4.0.0.tar.gz


cd ${cdir}/omniORB-4.1.7
mkdir build
cd build
../configure
make

cd ${cdir}/omniORBpy-3.7
mkdir build
cd build
../configure
make



cd ${cdir}/OpenRTM-aist-1.1.1
./configure --without-doxygen
make
sudo make install

cd ${cdir}/OpenRTM-aist-Python-1.1.0
python setup.py build
sudo python setup.py install

cd ${cdir}/rtshell-4.0.0
sudo python setup.py install

cd ${cdir}/rtctree-4.0.0
sudo python setup.py install

cd ${cdir}/rtsprofile-4.0.0
sudo python setup.py install