bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Accept Bison's NEWS format.


From: Joel E. Denny
Subject: [PATCH] Accept Bison's NEWS format.
Date: Sun, 2 Nov 2008 18:02:47 -0500 (EST)

announce-gen doesn't like Bison's NEWS format.  The following patch fixes 
it.  Or should we consider reformatting Bison's NEWS file?  Thanks.

>From f289ed88ea6513e18709b6b65ea3875bbd375998 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <address@hidden>
Date: Sun, 2 Nov 2008 17:58:01 -0500
Subject: [PATCH] Accept Bison's NEWS format.

* build-aux/announce-gen (print_news_deltas): Here.

diff --git a/build-aux/announce-gen b/build-aux/announce-gen
index 6775665..fc852d1 100755
--- a/build-aux/announce-gen
+++ b/build-aux/announce-gen
@@ -207,7 +207,7 @@ sub print_news_deltas ($$$)
   # the first occurrence of $prev_version.
   my $in_items;
 
-  my $re_prefix = qr/\* (?:Noteworthy|Major) change/;
+  my $re_prefix = qr/\* (?:Noteworthy|Major) change|Changes/;
 
   open NEWS, '<', $news_file
     or die "$ME: $news_file: cannot open for reading: $!\n";
@@ -218,6 +218,7 @@ sub print_news_deltas ($$$)
          # Match lines like these:
          # * Major changes in release 5.0.1:
          # * Noteworthy changes in release 6.6 (2006-11-22) [stable]
+         # Changes in version 2.4 (2008-11-02):
          $line =~ /^$re_prefix.*(?:[^\d.]|$)\Q$curr_version\E(?:[^\d.]|$)/o
            or next;
          $in_items = 1;
-- 
1.5.4.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]