
#
# BIG BROTHER - AUTOMATIC CONFIG SCRIPT
#
# 
#

OS="sco freebsd solaris hpux linux sunos netbsd osf ultrix irix unixware redhat"

if test "$#" != "1"
then
	echo "Format: bbconfig <OS-TYPE>
		where OS-TYPE is one of: $OS"
	exit 1
else
	MACHINE=$1
fi

echo $OS | grep "$MACHINE" > /dev/null 2>&1
if test "$?" = "1"
then
	echo "bbconfig: $MACHINE unsupported... configure manually"
	exit 2
fi

echo "*** Adjusing Makefile in source directory"
cp ../src/Makefile.${MACHINE} ../src/Makefile

echo "*** Adjusing Command includes in ../etc"
cp ../etc/bbsys.${MACHINE} ../etc/bbsys.local

echo "Done.  Now go to ../src and type make"
