rx: Make rxi_Free(NULL, size) a no-op
[openafs.git] / src / afsinstall / lib / InstallGuides / SUN4x_4x / bldkernel
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 installing static AFS kernel libraries
9 # For SUN systems running SunOS 4.x
10 #
11
12 sub bldkernel {
13 my($arch);
14 &ErrorsAreFatal(1);
15 $arch = `/bin/uname -m`;
16 chop $arch;
17 &ErrorMsg("Couldn't get sun kernel architecture type with","/bin/uname -m") 
18  unless ($arch =~ /sun/);
19 &ErrorsAreFatal(0);
20
21 if ($Configuration{"NFSEXTENSIONS"}) {
22   &Copy("root.client/bin/libafs.a",  "/usr/sys/$arch/OBJ/libafs.o");  }
23 else {
24   &Copy("root.client/bin/libafs.nonfs.a",  "/usr/sys/$arch/OBJ/libafs.o");  }
25 &VPrint("Running ranlib on library");
26 system("ranlib /usr/sys/$arch/OBJ/libafs.o");
27
28 &Copy("root.client/usr/vice/etc/afsd", "/usr/vice/etc");
29 &Chmod(0744, "/usr/vice/etc/afsd");
30 &Copy("bin/fs", "/usr/vice/etc/fs");
31 }