Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / afsinstall / lib / InstallGuides / hp700_ux100 / 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.01
10 #
11
12 sub build {
13 my ($hostname);
14 $hostname = `/bin/uname -n`;
15 chop $hostname;
16 $hostname = tr/a-z/A-Z/;
17 &Print("Compiling with command \"/usr/sbin/config system\"");
18 &Print("in directory /stand");
19 &Print("New kernel will be /stand/vmunix_test");
20 &Print("Install kernel as /stand/vmunix");
21
22 &ErrorsAreFatal(1);
23 $rc = chdir("/stand");
24 &ErrorMsg("Could not change to dir", "/stand") if (!$rc);
25
26 $rc = system("/usr/sbin/config system");
27 $rc = $rc >> 8;
28 &Print("Returned code $rc");
29 }