diff options
author | Reuben Thomas <rrt@sc3d.org> | 2011-04-29 22:04:46 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-04-30 07:57:19 +0200 |
commit | 361a1a46831e3df5f8fce02c4805a3501da410f7 (patch) | |
tree | 6c428bed7b15424532519a4436a73a07ec938a9d /build-aux/announce-gen | |
parent | 86e6a68e249fd4e4af6cebbfddfc52b33d3f8b37 (diff) | |
download | gnulib-361a1a46831e3df5f8fce02c4805a3501da410f7.tar.gz |
announce-gen: cosmetic improvement
* build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
Diffstat (limited to 'build-aux/announce-gen')
-rwxr-xr-x | build-aux/announce-gen | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build-aux/announce-gen b/build-aux/announce-gen index 7adfef2188..233ee9b959 100755 --- a/build-aux/announce-gen +++ b/build-aux/announce-gen @@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}' 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 @@ sub print_news_deltas ($$$) { 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 |