From e40c5f735cb1abf6f7b2b0a8a6988c709f698f1d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 29 Jul 2009 15:39:20 +0200 Subject: maint: make update-copyright work in yet another case * build-aux/update-copyright: Handle the case in which "\n#" appears between the final year number and the copyright holder name. * m4/lib-check.m4: Update copyright year list. Reported by Joel E. Denny. --- build-aux/update-copyright | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-aux') diff --git a/build-aux/update-copyright b/build-aux/update-copyright index 23d8f38ca..1ceaf8ab6 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -1,7 +1,7 @@ #!/usr/bin/perl -0777 -pi # Update an FSF copyright year list to include the current year. -my $VERSION = '2009-07-29.08:43'; # UTC +my $VERSION = '2009-07-29.13:34'; # UTC # Copyright (C) 2009 Free Software Foundation # @@ -27,7 +27,7 @@ my ($sec, $min, $hour, $mday, $month, $year) = localtime (time()); my $this_year = $year + 1900; my $holder = 'Free Software Foundation'; -if (/([- ])((?:\d\d)?\d\d)(\s+$holder)/s) +if (/([- ])((?:\d\d)?\d\d)((?:\n\#)?\s+$holder)/s) { my ($sep, $last_c_year, $rest) = ($1, $2, $3); -- cgit v1.2.3-54-g00ecf