#!/bin/sh # # $dotat: buildworld/updateworld.sh,v 1.21 2002/07/25 10:24:04 fanf2 Exp $ # 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 UPDATE THE WORLD banner started at `date` mount -v run cd $SRC # avoid common conflicts rm -f sys/conf/newvers.sh make update # hack for -CURRENT if [ -d /FreeBSD/head ] then run cd /FreeBSD/head cvs -f update fi # add the build date to the OS version string run cd $SRC/sys/conf run mv newvers.sh newvers.sh.old echo sed -e "s/^\(RELEASE=.*}\).*\"/\1-$DATE\"/" '<' newvers.sh.old '>' newvers.sh sed -e "s/^\(RELEASE=.*}\).*\"/\1-$DATE\"/" < newvers.sh.old > newvers.sh for patch in $SCRIPTS/patches.src/*.patch do if [ -r $patch ] then banner patching with $patch patch -p0 < $patch fi done banner completed at `date` mount -v # see above ) >> $LOGFILE 2>&1