summaryrefslogtreecommitdiff
path: root/mk/bulk/post-build
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2000-12-26 16:45:57 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2000-12-26 16:45:57 +0000
commit9b36db279134d6a45c344ff4d51bd7fede5536e3 (patch)
treec159b5716eb4a54c9280826c9ee7605edc225660 /mk/bulk/post-build
parent1501c31d4689b9c8ffa7f3821b2a521c89f6307a (diff)
downloadpkgsrc-9b36db279134d6a45c344ff4d51bd7fede5536e3.tar.gz
- get the BROKENFILE setting from `make show-var VARNAME=BROKENFILE` rather than
hard coding it. - explicitly only add $BROKENFILE's to the output rather than .broken.* This makes things work correctly when /usr/pkgsrc is shared among several machines which might use .broken.`hostname` for its broken file logs.
Diffstat (limited to 'mk/bulk/post-build')
-rw-r--r--mk/bulk/post-build12
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/bulk/post-build b/mk/bulk/post-build
index 3584d956f03..d06f8a634a7 100644
--- a/mk/bulk/post-build
+++ b/mk/bulk/post-build
@@ -1,5 +1,5 @@
#!/usr/pkg/bin/perl
-# $NetBSD: post-build,v 1.3 2000/09/17 21:51:09 hubertf Exp $
+# $NetBSD: post-build,v 1.4 2000/12/26 16:45:57 dmcmahill Exp $
#
# Collect stuff after a pkg bulk build
#
@@ -34,6 +34,7 @@ getconf("REPORT"); # "broken.html"
getconf("USR_PKGSRC"); # "/usr/pkgsrc"
getconf("osrev"); # `uname -r`
getconf("arch"); # `uname -m`
+getconf("BROKENFILE"); # ".broken.file"
chomp($date=`date`);
$verbose=1;
@@ -51,7 +52,7 @@ system("mkdir -p ${FTP}");
# Copy over the output from the build process
chdir("$USR_PKGSRC");
-system("tar plcf - .broken* */*/.broken* | ( cd ${FTP} ; tar plxf - )");
+system("tar plcf - $BROKENFILE */*/$BROKENFILE | ( cd ${FTP} ; tar plxf - )");
open(HTML,">$REPORT") or die;
@@ -83,11 +84,10 @@ EOHTML
# some nifty postprocessing of $FTP/.broken* -> HTML here
$nunpackaged = $nbroken = 0;
chdir("$FTP");
-$bf=".broken.$arch";
-open(BF,"sort +1 $bf |") or die "can't open .broken-file '$bf'";
+open(BF,"sort +1 $BROKENFILE |") or die "can't open .broken-file '$BROKENFILE'";
while (<BF>) {
- ($nerrors, $bf) = split;
- ( $pkg = $bf ) =~ s,/.broken.*$,,;
+ ($nerrors, $pkg) = split;
+ $pkg =~ s,/$BROKENFILE,,;
# next
# if $pkg!~/^a/; # DEBUG! HF