Get the OS name from "uname -s" instead of assuming NetBSD.

Observed from Gavan's Solaris bulk build.
This commit is contained in:
cjep 2003-08-18 19:19:33 +00:00
parent c4661d321d
commit f958dadcb5

View file

@ -1,5 +1,5 @@
#!/usr/pkg/bin/perl #!/usr/pkg/bin/perl
# $NetBSD: post-build,v 1.22 2003/05/06 17:42:03 jmmv Exp $ # $NetBSD: post-build,v 1.23 2003/08/18 19:19:33 cjep Exp $
# #
# Collect stuff after a pkg bulk build # Collect stuff after a pkg bulk build
# #
@ -38,6 +38,8 @@ getconf("arch"); # `uname -m`
chomp($date=`date`); chomp($date=`date`);
$reportf=basename($REPORT); $reportf=basename($REPORT);
chomp($os=`uname -s`);
# extract the name of the files used for the build log and broken build log. # extract the name of the files used for the build log and broken build log.
# these have defaults set by bsd.bulk-pkg.mk and may be overridden in /etc/mk.conf # these have defaults set by bsd.bulk-pkg.mk and may be overridden in /etc/mk.conf
chomp($BROKENFILE=`( cd $USR_PKGSRC/pkgtools/pkglint ; $ENV{"BMAKE"} show-var VARNAME=BROKENFILE )`); chomp($BROKENFILE=`( cd $USR_PKGSRC/pkgtools/pkglint ; $ENV{"BMAKE"} show-var VARNAME=BROKENFILE )`);
@ -63,7 +65,7 @@ $verbose=1;
if ($verbose) { if ($verbose) {
print "\n"; print "\n";
print "*** NetBSD $osrev/$arch\n"; print "*** $os $osrev/$arch\n";
print "*** Result of bulk pkgsrc build as of $date:\n"; print "*** Result of bulk pkgsrc build as of $date:\n";
print "\n"; print "\n";
printf ("%-23s State \tBreaks\t(last modified, maintainer)\n","Pkg"); printf ("%-23s State \tBreaks\t(last modified, maintainer)\n","Pkg");
@ -87,12 +89,12 @@ open(HTML,">$REPORT") or die "Can't write $REPORT: $!\n";
print HTML <<EOHTML print HTML <<EOHTML
<HTML> <HTML>
<HEAD> <HEAD>
<TITLE>NetBSD-$osrev/$arch bulk package build</TITLE> <TITLE>$os-$osrev/$arch bulk package build</TITLE>
</HEAD> </HEAD>
<BODY BGCOLOR=#cccccc> <BODY BGCOLOR=#cccccc>
<H1> NetBSD $osrev/$arch </H1> <H1> $os $osrev/$arch </H1>
<H2>Output of the pkgsrc bulk build<BR> <H2>Output of the pkgsrc bulk build<BR>
as of $date</H2> as of $date</H2>