ref: f3afdf563f784c0a5703496f48c1a72dff4617f4
dir: /upd/
#!/bin/rc # upd - update the whole system # usage: upd curdir=`{pwd} echo Updating sources… sysupdate echo Sources updated. echo Do you want to continue and recompile? [y/N] choice=`{read} if (~ $choice [yY]* ) echo Recompiling… if not exit # create any missing directories # that are required for building cd / . /sys/lib/rootstub # begin building echo Build starting... # update compilers first echo Updating compilers... cd /sys/src/cmd/cc; mk install cd /sys/src/cmd/6c; mk install # now update the system echo Updating the system... cd /sys/src mk install mk clean # build manpage indices echo Updating the man pages... cd /sys/man mk # build the docs echo Updating documents... cd /sys/doc mk mk html # build and install new kernel cd /sys/src/9/pc64 echo Building new kernel… mk install echo Installing bootloader and kernel… 9fs 9fat rm /n/9fat/9bootfat cp /386/9bootfat /n/9fat/ chmod +al /n/9fat/9bootfat # defrag magic cp /amd64/9pc64 /n/9fat cd $curdir echo 9Front has been updated to the bleeding edge. echo FShalt -r this thing for new hotness.