#!/bin/sh

#rm SDL-devel-1.2.14-mingw32.tar.gz
if [ ! -f SDL-devel-1.2.14-mingw32.tar.gz ]; then
echo "FILE NOT FOUND"
wget http://www.libsdl.org/release/SDL-devel-1.2.14-mingw32.tar.gz
fi
tar xzvf SDL-devel-1.2.14-mingw32.tar.gz 2>/dev/null
cd SDL-1.2.14
cp bin/SDL.dll $WINDIR
if [ ! -d /mingw/include/SDL ]; then
mkdir /mingw/include/SDL
fi
cp include/SDL/* /mingw/include/SDL
cp lib/* /mingw/lib
cp bin/sdl-config /bin
cd ..
