Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / afsinstall / lib / InstallGuides / hp_ux102 / build
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3 #
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 # An InstallGuide for compiling a new kernel
9 # For HP 9000 systems running HPUX 10.20
10 #
11
12 sub build {
13 print "Compiling with command \"/usr/sbin/mk_kernel\"\n";
14 print "in directory /stand/build\n";
15 print "New kernel will be /stand/build/vmunix_test\n";
16 print "Install kernel as /stand/vmunix\n";
17
18 &ErrorsAreFatal(1);
19 $rc = chdir("/stand/build");
20 &ErrorMsg("Could not change to dir", "/stand/build") if (!$rc);
21
22 $rc = system("/usr/sbin/mk_kernel");
23 $rc = $rc >> 8;
24 print "Returned code $rc\n";
25 }