# 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 HP systems running HP-UX 10.x
#

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