mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
make a plain text option
This commit is contained in:
parent
bf38e3dc71
commit
b53ce674ce
@ -45,6 +45,7 @@ sub str2timeAndCheck {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!($form{text})) {
|
||||
my $header = "<table border=1><th>Build time</th><th>Build name</th><th>Who</th><th>Note time</th><th>Note</th>";
|
||||
|
||||
if (defined $tree && defined $start && defined $end) {
|
||||
@ -86,8 +87,50 @@ if (defined $tree && defined $start && defined $end) {
|
||||
}
|
||||
print "</table>\n";
|
||||
}
|
||||
} #end html
|
||||
|
||||
if (!defined $tree) {
|
||||
else {
|
||||
|
||||
my $header = "<PRE>\nBuild Time\t\tBuild Name\t\t\tWho\t\t\Note Time\t\t\tNote\n" .
|
||||
"----------------------------------------------------------------------------------------------------------------------------\n";
|
||||
|
||||
if (defined $tree && defined $start && defined $end) {
|
||||
my $first = str2timeAndCheck($start);
|
||||
my $last = str2timeAndCheck($end);
|
||||
if ($first > 0 && $last > 0) {
|
||||
if (open(IN, "<$tree/notes.txt")) {
|
||||
print "<PRE>Notes for $tree\n\nfrom " .
|
||||
time2str($TIMEFORMAT, $first) . " to " .
|
||||
time2str($TIMEFORMAT, $last) . "\n</PRE>";
|
||||
my %stats;
|
||||
print "$header\n";
|
||||
while (<IN>) {
|
||||
chop;
|
||||
my ($nbuildtime,$nbuildname,$nwho,$nnow,$nenc_note)
|
||||
= split /\|/;
|
||||
if ($nbuildtime >= $first && $nbuildtime <= $last) {
|
||||
my $note = &url_decode($nenc_note);
|
||||
$nbuildtime = print_time($nbuildtime);
|
||||
$nnow = print_time($nnow);
|
||||
print "$nbuildtime\t";
|
||||
print "$nbuildname\t";
|
||||
print "$nwho\t";
|
||||
print "$nnow\t\t";
|
||||
print "$note\t";
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
print "<p><font color=red>There does not appear to be a tree " .
|
||||
"named '$tree'.</font><p>";
|
||||
}
|
||||
}
|
||||
print "\n<\PRE>";
|
||||
}
|
||||
|
||||
|
||||
if (!defined $tree) {
|
||||
$tree = "";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user