>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 "$Mode\n"; + print "$Mode\n"; print "$Revision\n"; print "$Hostname\n"; print "$Timestamp\n"; @@ -414,6 +414,11 @@ foreach $project (sort keys %Projects) { print "$hostname, \n"; } print "

\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 "
\n"; + print "

\n"; + print "Summary for $project in mode $mode

\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + foreach $file (@Files) { + next unless $Project{$file} eq $project; + next unless $Mode{$file} eq $mode; + + my ($Project); + my ($Revision); + my ($Mode); + my ($Hosttype); + my ($Buildtype); + my ($Hostname); + my ($Timestamp); + my ($Status); + + $Revision = $Revision{$file}; + $Mode = $Mode{$file}; + $Hosttype = $Hosttype{$file}; + $Buildtype = $Buildtype{$file}; + $Hostname = $Hostname{$file}; + $Timestamp = $Timestamp{$file}; + $Status = $Status{$file}; + + if ($bit) { + print "\n"; + } else { + print "\n"; + } + $bit = !$bit; + + print "\n"; + } else { + print " from $Buildtype\n"; + } + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + } + print "
SystemBuild hostRevisionBuild dateResults
$Hosttype"; + if ($Hosttype eq $Buildtype) { + print "$Hostname$Revision$Timestamp\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 "\n"; + } + print "\n"; } print "\n"; -- 1.7.2.1.222.g9988