]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak git2changelog for bweb
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Apr 2010 08:06:53 +0000 (10:06 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:43 +0000 (16:53 +0200)
bacula/release/git2changelog.pl

index de65cfebd519fea3d9f2193db3a8bfbb6383c235..385f06915497fb7a3f702b7863c07c806210785a 100755 (executable)
@@ -4,6 +4,9 @@
     
     ./git2changelog.pl Release-3.0.1..Release-3.0.2
 
+ For bweb ReleaseNotes, use
+    FORBWEB=1 ./git2changelog.pl Release-3.0.1..Release-3.0.2
+
 =cut
 
 use strict;
@@ -13,12 +16,20 @@ my $d='';
 my $last_txt='';
 my %bugs;
 my $refs = shift || '';
+my $for_bweb = $ENV{FORBWEB}?1:0;
 open(FP, "git log --no-merges --pretty=format:'%ct: %s' $refs|") or die "Can't run git log $!";
 while (my $l = <FP>) {
 
     # remove non useful messages
-    next if ($l =~ /(tweak|typo|cleanup|bweb:|regress:|again|.gitignore|fix compilation|technotes)/ixs);
-    next if ($l =~ /update (version|technotes|kernstodo|projects|releasenotes|version|home|release|todo|notes|changelog)/i);
+    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)/i);
+
+    if ($for_bweb) {
+        next if ($l !~ /bweb/ixs);
+        $l =~ s/bweb: *//ig;
+    } else {
+        next if ($l =~ /bweb:/ixs);
+    }
 
     # keep list of fixed bugs
     if ($l =~ /#(\d+)/) {