#!/bin/bash

DEP1=SDL_net-1.2.8-2.fc18.i686.rpm
DEP2=t4k_common-0.1.1-8.fc18.i686.rpm
DEP3=tuxmath-2.0.3-2.fc18.i686.rpm
DEP4=SDL_image-1.2.12-4.fc18.i686.rpm
SUGAR1=TuxMath-3.2.xo
DIRECTORIO=`pwd`

echo "Installing $DEP1"
rpm -ivh $DIRECTORIO/$DEP1

echo "Installing $DEP2"
rpm -ivh $DIRECTORIO/$DEP2

echo "Installing $DEP3"
rpm -ivh $DIRECTORIO/$DEP3

echo "Updating $DEP4"
rpm -Uvh $DIRECTORIO/$DEP4

echo "Installing Sugar Tuxmath activity"
/bin/su -c "/usr/bin/sugar-install-bundle $DIRECTORIO/$SUGAR1" - olpc

echo "Done!!!"
