head	1.1;
branch	1.1.1;
access;
symbols
	openafs_debian_version_1_0-1:1.1.1.1
	openafs_upstream_version_1_0:1.1.1.1
	source-dist:1.1.1;
locks; strict;
comment	@# @;
expand	@o@;


1.1
date	2000.11.02.03.35.34;	author hartmans;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.02.03.35.34;	author hartmans;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#
# build
#
# An InstallGuide for compiling a new kernel
# For SUN systems running SunOS 4.x
#

sub build {
my ($arch, $hostname);
$arch = `/bin/uname -m`;
chop $arch;
$hostname = `/bin/uname -n`;
chop $hostname;
$hostname =~ tr/a-z/A-Z/;

&Print("Starting compile with command \"/etc/config $hostname\"");
&Print("in directory /usr/sys/$arch/conf");

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

$rc = system("/etc/config $hostname");
$rc = $rc >> 8;
&Print("Returned code $rc");
&ErrorMsg("Stopping compile") if ($rc);


&Print("Finishing compile with command \"make vmunix\"");
&Print("in directory /usr/sys/$arch/$hostname");
&Print("New kernel will be /usr/sys/$arch/$hostname/vmunix");
&Print("and should be installed as /vmunix");

$rc = chdir("/usr/sys/$arch/$hostname");
&ErrorMsg("Could not change to dir", "/usr/sys/$arch/$hostname") if (!$rc);

$rc = system("make vmunix");
$rc = $rc >> 8;
&Print("Returned code $rc");
}
@


1.1.1.1
log
@Initial Import. 
@
text
@@
