#!/bin/sh


# bbconfig
# BIG BROTHER - AUTOMATIC CONFIG SCRIPT
# Sean MacGuire - The MacLawran Group Inc.
# Version 1.06
# Dec 30, 1997
#
# This program is Copyright (c) 1997 
# The MacLawran Group Inc.
# All Rights Reserved

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

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"
