#! /bin/sh cd /root/cvsup cvsup -g -L 2 4.x-stable-supfile 2>&1 | tee /var/log/build/cvsup.log cd /var/log/build # Now convert the log to html cvsuplog < cvsup.log > cvsup-`date "+%Y%m%d-%H%M"`.html # We have updated the source and now it is time to build the world. # I have modified this in use to save the logs in /var/log/build/... # This keeps the logs out of /usr/src. You do need a large # /var when you do this. cd /usr/src make buildworld 2>&1 | tee /var/log/build/bworld-`date "+%Y%m%d-%H%M"`.log make buildkernel KERNCONF=RUBY 2>&1 | tee /var/log/build/bkernel-`date "+%Y%m%d-%H%M"`.log make installkernel KERNCONF=RUBY 2>&1 | tee /var/log/build/ikernel-`date "+%Y%m%d-%H%M"`.log make installworld 2>&1 | tee /var/log/build/iworld-`date "+%Y%m%d-%H%M"`.log