#!/bin/sh
# This is a very simple conf script....


OS_TYPE=`uname -s`
OS_RELEASE=`uname -r`
echo "Your System is $OS_TYPE release $OS_RELEASE."
if [ -f Makefile.$OS_TYPE ]; then
   echo "Great! Linking Makefile."
   ln -sf Makefile.$OS_TYPE Makefile
   make clean
   echo "Now run 'make' or 'make install'!"
else
   echo "Sorry, your System has not been tested."
   makefiles=`echo Makefile.*`
   echo "Checkout (one of) the file(s) $makefiles."
   echo "Rename it to 'Makefile' and run a 'make' or 'make install'!"
   exit 1;
fi
exit 0
