#
# build
#
# An InstallGuide for compiling a new kernel
# For HP 9000 systems running HPUX 10.10
#

sub build {
my ($hostname);
$hostname = `/bin/uname -n`;
chop $hostname;
$hostname =~ tr/a-z/A-Z/;
&Print("Compiling with command \"/usr/sbin/config -m master.d $hostname\"");
&Print("in directory /stand/build_afs");
&Print("New kernel will be /stand/build_afs/vmunix_test");
&Print("Install kernel as  /stand/vmunix");

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

$rc = system("/usr/sbin/config -m master.d $hostname");
$rc = $rc >> 8;
&Print("Returned code $rc");
}
