get_ktoon.sh
#!/bin/bash
#
# Author: xtingray
#
# Description: this script gets the latest source code
# of KTooN and makes the compilation process, taking care
# of installing all the dependencies previously.
#
# Tested on: Ubuntu 10.04 (Lucid)
echo "* Installing dependencies..."
sudo apt-get --yes install build-essential
sudo apt-get --yes install ruby1.9
sudo apt-get --yes install libaspell-dev
sudo apt-get --yes install libavcodec-dev libavformat-dev
sudo apt-get --yes install libqt4-gui qt4-qmake qt4-dev-tools
sudo apt-get install zlib1g-dev
sudo apt-get --yes install git-core
echo "* Setting the a nice place to work..."
cd $HOME
if [ -d ktoon/sources ]; then
rm -rf ktoon/sources
fi
mkdir -p ktoon/sources
cd ktoon/sources
git clone http://git.gitorious.org/kom/kom.git
git clone http://git.gitorious.org/ktoon/ktoon.git
echo "* Compiling KOM..."
cd kom
./configure --prefix=/usr --with-debug
make
sudo make install
echo "* Compiling KTooN..."
cd ..
cd ktoon
./configure --prefix=/usr/local/ktoon --with-debug
make
sudo make install
echo "* Enjoy KTooN! :)"


