summaryrefslogtreecommitdiff
path: root/announce-gen
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-15 00:01:01 +0000
committerJim Meyering <jim@meyering.net>2003-07-15 00:01:01 +0000
commit5693cbd8fee47597757d8858abb1bd39b0789984 (patch)
treea425d101af1a45e2c57b78197a44d62e0868f455 /announce-gen
parenteda3639e1957565b1949bda8af13ea99f3d11053 (diff)
downloadcoreutils-5693cbd8fee47597757d8858abb1bd39b0789984.tar.xz
(print_changelog_deltas): Relax test for matching version-number line in NEWS.
Diffstat (limited to 'announce-gen')
-rwxr-xr-xannounce-gen7
1 files changed, 5 insertions, 2 deletions
diff --git a/announce-gen b/announce-gen
index b63585bdf..171e426aa 100755
--- a/announce-gen
+++ b/announce-gen
@@ -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;