#
# build
#
# An InstallGuide for compiling a new kernel
# For SGI systems running IRIX 
#

sub build {
&Print("Compiling with command \"autoconfig\"");
&Print("in directory /var/sysgen/boot");
&Print("New kernel will be /unix.install. System will automatically move");
&Print("it to /unix upon reboot");

&ErrorsAreFatal(1);
$rc = chdir("/var/sysgen/boot");
&ErrorMsg("Could not change to dir", "/var/sysgen/boot") if (!$rc);

$rc = system("autoconfig");
$rc = $rc >> 8;
&Print("Returned code $rc");
}
