# Copyright 2000, International Business Machines Corporation and others.
# All Rights Reserved.
# 
# This software has been released under the terms of the IBM Public
# License.  For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html

# 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");
}
