From ffb2a1b746815e695d3ddf806ab9f387a21f29bf Mon Sep 17 00:00:00 2001 From: rillig Date: Fri, 18 Nov 2005 11:38:00 +0000 Subject: - The text/plain report is generated using printf() instead of formline(). This prevents long package names from being trimmed. - Removed the "-p e" command line option from the pax(1) command line. This makes it possible to run mk/bulk/post-build as different user from the one who did the actual build. --- mk/bulk/post-build | 67 +++++++++++++++++++++++++++--------------------------- 1 file changed, 33 insertions(+), 34 deletions(-) (limited to 'mk') diff --git a/mk/bulk/post-build b/mk/bulk/post-build index 6b02b960dde..8b54770698a 100644 --- a/mk/bulk/post-build +++ b/mk/bulk/post-build @@ -1,5 +1,5 @@ #!/usr/pkg/bin/perl -# $NetBSD: post-build,v 1.59 2005/11/18 10:18:05 rillig Exp $ +# $NetBSD: post-build,v 1.60 2005/11/18 11:38:00 rillig Exp $ # # Collect stuff after a pkg bulk build # @@ -41,7 +41,10 @@ sub my_system (@) { return system(@_); } -# Where config vars are stored (/bin/sh syntax) +# +# Load configuration variables from the bulk.conf file, which is a shell +# script. +# my $BULK_BUILD_CONF = $ENV{BULK_BUILD_CONF} || (dirname($0).'/build.conf'); $BULK_BUILD_CONF = "./$BULK_BUILD_CONF" if ($BULK_BUILD_CONF !~ m:^/:); @@ -167,21 +170,28 @@ if (!defined($startdate) || $startdate == 0) { $enddate = strftime("%c %Z", gmtime(time())); } -my $report_head = < 0; if ($pinfo->{nerrors} != 0 && $verbose && ($state eq "broken" || $state eq "topten")) { - print swrite($report_form, $pkg, $nbrokenby > 0 ? $nbrokenby : "", $maintainer); + print_report_line($pkg, $nbrokenby > 0 ? $nbrokenby : "", $maintainer); } return <