#! /bin/sh
# $Id: build,v 1.1 2002/06/07 01:29:03 ca Exp $
#
D=`pwd`
P=`dirname $0`
L=$D/$P
cd $L && BUILD=`pwd`
cd .. && BD=`pwd`
cd $D
CG=`/bin/sh $BUILD/config.guess`
if [ -z "$CG" ]
then
	echo "$0: cannot determine OS type".
	exit 1
fi
OBJ=`echo $CG | sed -e 's/\(.*\)-\(.*\)$/\2-\1/'`
# better way?
if [ -d $OBJ ]
then
  :
else
  mkdir $OBJ
fi
cd $OBJ || exit 1
# using an absolute path to configure is BAD...
# $BD/configure && make && make check
# and this is ugly.... make it flexible?
../../mta/configure && make && make check
