echo
echo "Welcome to Xps configuration"
echo "----------------------------"
echo "You have to spezify your target operation system."
echo "Xps should be able to work fine with Linux 0.9 and higher and SunOS 4.x."
echo

while [ "$ans" != "l" -a "$ans" != "s" ]; do
	echo "Please type 'l' for Linux or 's' for SunOS! "
	IFS='@' read ans </dev/tty || exit 1
	[ -z "$ans" ] 
done
if [ "$ans" = "l" ]; then
	cd src
	rm Makefile >/dev/null 2>&1 
	ln -s Linux-Makefile Makefile 
	cd ..
	echo "LINUX = LINUX" >$1
else
	cd src
	rm Makefile >/dev/null 2>&1 
	ln -s Sun-Makefile Makefile 
	cd ..
	echo "SUNOS = SUNOS" >$1
fi

echo "Thank you! That's all!"
echo "Now simply type 'make' to build Xps!"
echo

