allow one run to update all three files

This commit is contained in:
Steve McIntyre 2011-10-18 14:37:05 +00:00
parent 11f920df49
commit 31b28f0b51
1 changed files with 10 additions and 3 deletions

View File

@ -148,19 +148,26 @@ for my $bug (keys %{$status}) {
} }
$time_text = get_time(); $time_text = get_time();
my $num_files = 0;
if (defined ($daily_out)) { if (defined ($daily_out)) {
@dailies = sort sort_bug @dailies; @dailies = sort sort_bug @dailies;
$text = print_bugs(@dailies); $text = print_bugs(@dailies);
update_file($daily_out, $text, $time_text); update_file($daily_out, $text, $time_text);
} elsif (defined ($weekly_out)) { $num_files++;
}
if (defined ($weekly_out)) {
@weeklies = sort sort_bug @weeklies; @weeklies = sort sort_bug @weeklies;
$text = print_bugs(@weeklies); $text = print_bugs(@weeklies);
update_file($weekly_out, $text, $time_text); update_file($weekly_out, $text, $time_text);
} elsif (defined ($release_out)) { $num_files++;
}
if (defined ($release_out)) {
@releases = sort sort_bug @releases; @releases = sort sort_bug @releases;
$text = print_bugs(@releases); $text = print_bugs(@releases);
update_file($release_out, $text, $time_text); update_file($release_out, $text, $time_text);
} else { $num_files++;
}
if (!$num_files) {
die "No output files defined\n"; die "No output files defined\n";
} }