Commit | Line | Data |
---|---|---|
805e021f CE |
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.10 | |
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 -m master.d $hostname\""); | |
18 | &Print("in directory /stand/build_afs"); | |
19 | &Print("New kernel will be /stand/build_afs/vmunix_test"); | |
20 | &Print("Install kernel as /stand/vmunix"); | |
21 | ||
22 | &ErrorsAreFatal(1); | |
23 | $rc = chdir("/stand/build_afs"); | |
24 | &ErrorMsg("Could not change to dir", "/stand/build_afs") if (!$rc); | |
25 | ||
26 | $rc = system("/usr/sbin/config -m master.d $hostname"); | |
27 | $rc = $rc >> 8; | |
28 | &Print("Returned code $rc"); | |
29 | } |