#shell script to install giis.
clear
echo -e $"\n\t\t\tgET iT i sAY.giis"
echo -e $"\t\t\t-----------------"
echo -e $"\t\t\t   Version 4.1\n"
echo -e $"\t***Checking for Previous Installation...";
#Check for /usr/bin/giis
test -e /usr/bin/giis
   if [ $? -eq 0 ]; 
	then
	rm -f /usr/bin/giis
   fi
echo -e $"\t***Compile files....."
make
echo -e $"\t***Compilation O.K."
echo -e $"\n\t***Installing giis...."
mv -f ./giis /usr/bin
giis -i
   if [ $? -eq 2 ]; 
	then
	exit 2
   fi


echo -e $"\n\t***Setting up giis_config files..."
#Check for giis.conf
test -e /etc/giis.conf
   if [ $? -ne 0 ]; 
	then
	cat giis.config.in >> /etc/inittab
	cat giis.daemon >> /etc/crontab
   fi

echo -e $"\n\t" 
echo -e $"\t Copying Quotes and hai files..."
cp hai /etc/giis.conf
cp hai /giis/hai
cp quotes /giis/quotes
echo -e $"\t" 
echo -e $"\t Check out RAQ..."
echo -e $"\t" 
echo -e $"\t Type giis -h for help."


