#!/bin/sh
# $Id: 2.buildworld.sh,v 1.12 2004/09/15 15:43:28 drizzt Exp $                     

set -e -u

. ./config.sh
. ./.common.sh

echo "Building world..."
sleep 1
echo "\"This may take a while, go get some runts...\""
export __MAKE_CONF=$LOCALDIR/files/make.conf # Redefine make.conf path

rm -rf ${MAKEOBJDIRPREFIX:-/usr/obj}/usr || print_error
cd /usr/src || print_error
make cleandir || print_error
$MAKE buildworld $MAKEOPT || print_error

