summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-07-29 15:39:20 +0200
committerJim Meyering <meyering@redhat.com>2009-07-29 15:39:25 +0200
commite40c5f735cb1abf6f7b2b0a8a6988c709f698f1d (patch)
tree8cdb61b892fbd9208e7734bba8dc9d88e8c84aff /build-aux
parentbc51349ccd8b946ea974a863dbd83273cb4d4358 (diff)
downloadcoreutils-e40c5f735cb1abf6f7b2b0a8a6988c709f698f1d.tar.xz
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.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/update-copyright4
1 files changed, 2 insertions, 2 deletions
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);