>From 9be25f68da32f4210088bcd9a56ee52a2465f440 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues
Date: Mon, 30 Aug 2010 21:40:26 +0200 Subject: [PATCH 2/2] Add summaries keyed on mode. --- autobuild | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 78 insertions(+), 1 deletions(-) diff --git a/autobuild b/autobuild index fc4f8f1..b76436c 100755 --- a/autobuild +++ b/autobuild @@ -370,7 +370,7 @@ if (!$InlineHTML) { } else { print " from $Buildtype\n"; } - print "Modes (" . keys(%{$Modes{$project}}) . "): "; + foreach $mode (sort keys %{$Modes{$project}}) { + print "$mode, \n"; + } + print "
\n"; foreach $revision (reverse sort { if ($a eq $b) { return 0; } else { my $i = 0; do { my $j = substr ($a, $i, 1); my $k = substr ($b, $i, 1); if ($j != $k) { $j = substr ($a, $i); $k = substr ($b, $i); return $j <=> $k; } $i++; } while ($i < length($a)); } } keys %{$Revisions{$project}}) { my $bit = 0; @@ -629,6 +634,78 @@ foreach $project (sort keys %Projects) { print "\n"; } print "\n"; + + foreach $mode (sort keys %{$Modes{$project}}) { + my $bit = 0; + + print "System | \n"; + print "Build host | \n"; + print "Revision | \n"; + print "Build date | \n"; + print "Results | \n"; + print "
$Hosttype"; + if ($Hosttype eq $Buildtype) { + print " | \n"; + } else { + print " from $Buildtype\n"; + } + print "$Hostname | \n"; + print "$Revision | \n"; + print "$Timestamp | \n"; + print "\n"; + if ($Status eq "ok") { + print "Success\n"; + } elsif ($Status eq "almost") { + print "Almost\n"; + } elsif ($Status eq "built") { + print "Built\n"; + } else { + print "Failure\n"; + } + print " | \n"; + print "