use POSIX q/strftime/;
my $d='';
-my $cur;
-my %elt;
my $last_txt='';
my %bugs;
my $refs = shift || '';
next if ($l =~ /(tweak|typo|cleanup|regress:|again|.gitignore|fix compilation|technotes)/ixs);
next if ($l =~ /update (version|technotes|kernstodo|projects|releasenotes|version|home|release|todo|notes|changelog|tpl|configure)/i);
- next if ($l =~ /bacula-web:/);
-
if ($for_bweb) {
next if ($l !~ /bweb/ixs);
$l =~ s/bweb: *//ig;
if ($l =~ /(\d+): (.+)/) {
# use date as 01Jan70
my $dnow = strftime('%d%b%y', localtime($1));
- my $cur = strftime('%Y%m%d', localtime($1));
my $txt = $2;
# avoid identical multiple commit message
# if we are the same day, just add entry
if ($dnow ne $d) {
+ print "\n$dnow\n";
$d = $dnow;
- if (!exists $elt{$cur}) {
- push @{$elt{$cur}}, "\n\n$dnow";
- }
}
- push @{$elt{$cur}}, " - $txt";
+ print "- $txt\n";
} else {
print STDERR "invalid format: $l\n";
close(FP);
-foreach my $d (sort {$b <=> $a} keys %elt) {
- print join("\n", @{$elt{$d}});
-}
-
-print "\n\nBug fixes\n";
+print "\nBug fixes\n";
print join(" ", sort keys %bugs), "\n";