# HG changeset patch # User Reuben Thomas # Date 1304111086 -3600 # Node ID 855c7dafba017f27e94238fffce0b3009b2fd2a0 # Parent 05146890cb9a1b5e00c8019b8df5797968e341e3 announce-gen: cosmetic improvement * build-aux/announce-gen: Strip any leading ./ from the NEWS file name. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-04-29 Reuben Thomas + + announce-gen: cosmetic improvement + * build-aux/announce-gen: Strip any leading ./ from the NEWS file name. + 2011-04-29 Jim Meyering vc-list-files: indent with spaces, not TABs diff --git a/build-aux/announce-gen b/build-aux/announce-gen --- a/build-aux/announce-gen +++ b/build-aux/announce-gen @@ -3,7 +3,7 @@ if 0; # Generate a release announcement message. -my $VERSION = '2011-04-29 19:58'; # UTC +my $VERSION = '2011-04-29 21:01'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook @@ -180,7 +180,10 @@ { my ($news_file, $prev_version, $curr_version) = @_; - print "\n$news_file\n\n"; + my $news_name = $news_file; + $news_name =~ s|^\./||; + + print "\n$news_name\n\n"; # Print all lines from $news_file, starting with the first one # that mentions $curr_version up to but not including