#
# build
#
# An InstallGuide for compiling a new kernel
# For HP 9000 systems running HPUX 9.x
#

sub build {
&Print("Compiling with command \"/etc/uxgen SAFS\"");
&Print("in directory /etc/conf/gen");
&Print("New kernel will be /etc/conf/SAFS/hp-ux");
&Print("and should be installed as /hp-ux");

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

$rc = system("/etc/uxgen SAFS");
$rc = $rc >> 8;
&Print("Returned code $rc");
}

