.H2 "Putting it all together"
There are a number of steps in updating a repository and building a new version
of the operating system.  Make just a small mistake, and things won't work.  On
the other hand, none of the steps are complicated.  This is obviously a job for
a computer.
.P
.X "CVSup, command"
.X "command, CVSup"
The following script is designed to be run by \fIcron\fP.  It first updates the
repository with 
.Command CVSup ,
then it updates the source tree with \fIcvs\fP, and
finally it builds a new version of the system and the kernel.  If you schedule
this script to start late at night on a fast machine, it should all be done by
the following morning.
.Dx
echo ====== `date`: Getting CVSUP updates
cvsup -g -L2 /src/cvsup/cvs-cvsupfile                   \fIget the updates\fP\|
cvsup -g -L2 /src/cvsup/secure-cvsupfile                \fIsecurity comes from a different site\fP\|
echo ====== `date`: Updating /usr/src
echo cd /usr/src
cd /usr/src
cvs update -Pd                                          \fIupdate the source tree\fP\|
echo ====== `date`: Rebuilding CURRENT
echo cd /usr/src
cd /usr/src
make world                                              \fIrebuild everything\fP\|
make kernel
.De
.SPUP
