]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_changelog_deltas): Relax test for matching version-number line in NEWS.
authorJim Meyering <jim@meyering.net>
Tue, 15 Jul 2003 00:01:01 +0000 (00:01 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 15 Jul 2003 00:01:01 +0000 (00:01 +0000)
announce-gen

index b63585bdfe996dd4df76f597658d4dce4a05821b..171e426aadd36759957bfd48b8b9df7e751a8f74 100755 (executable)
@@ -6,7 +6,7 @@ use Getopt::Long;
 use Digest::MD5;
 use Digest::SHA1;
 
-(my $VERSION = '$Revision: 1.13 $ ') =~ tr/[0-9].//cd;
+(my $VERSION = '$Revision: 1.14 $ ') =~ tr/[0-9].//cd;
 (my $ME = $0) =~ s|.*/||;
 
 my %valid_release_types = map {$_ => 1} qw (alpha beta major);
@@ -303,7 +303,10 @@ EOF
        {
          if ( ! $in_items)
            {
-             $line =~ /^[^ *].*\Q$curr_version\E/o
+             # Match lines like this one:
+             # * Major changes in release 5.0.1:
+             # but not any other line that starts with a space, *, or -.
+             $line =~ /^(\* .*changes in release :|[^ *-].*)\Q$curr_version\E/o
                or next;
              $in_items = 1;
              print $line;