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

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

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

$rc = system("/usr/sbin/config system");
$rc = $rc >> 8;
&Print("Returned code $rc");
}
