#!/bin/sh # # $dotat: buildworld/buildworld.sh,v 1.92 2002/07/25 10:24:04 fanf2 Exp $ MAKEOPTS='' # location of the buildworld scripts cd ${0%/*} SCRIPTS=`pwd -P` # set up a load of the other stuff . $SCRIPTS/common.sh # do everything in a subshell that records the results ( bigbanner REBUILD THE WORLD banner `date` mount -v run cd $SRC run make $MAKEOPTS buildworld banner `date` mount -v # prepare to use newly-built utilities from now on # we need to put some special cases in a staging directory first run rm -rf $WEIRD run mkdir $WEIRD # special scripts run cp $SRC/gnu/usr.bin/man/makewhatis/makewhatis.perl $WEIRD/makewhatis run cp $SRC/usr.bin/mkdep/mkdep.gcc.sh $WEIRD/mkdep run cp $SRC/usr.bin/which/which.pl $WEIRD/which run chmod +x $WEIRD/* # bogus binaries run ln -f $OBJ/usr.bin/xinstall/xinstall $WEIRD/install run ln -f $OBJ/bin/test/test $WEIRD/[ # now we can use the new utilities goodpath banner build the kernel run cd $SRC run make $MAKEOPTS CONFIGARGS=-g buildkernel KERNCONF="$KERNCONF" banner `date` mount -v banner build sysinstall run cd $SRC/release/sysinstall run make $MAKEOPTS obj run make $MAKEOPTS all $SCRIPTS/doetc.sh banner Completed at `date` mount -v # see above ) >> $LOGFILE 2>&1