From: Mathieu Lirzin Date: Thu, 4 Jan 2018 14:59:04 +0000 (+0100) Subject: update-copyright: Handle use of © X-Git-Tag: v1.0~5770 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c3827a910617fd333a7b6f97c601796a46c2a2cf;p=gnulib.git update-copyright: Handle use of © * build-aux/update-copyright ($circle_c_re): Update regex to handle use of © in headers. --- diff --git a/ChangeLog b/ChangeLog index 3f2d8ce5b2..13e868aca8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-01-04 Mathieu Lirzin + + update-copyright: Handle use of © + * build-aux/update-copyright ($circle_c_re): Update regex to + handle use of © in headers. + 2018-01-04 Tim Rühsen Fix -Wundef warning in user-included header lib/cdefs.h. diff --git a/build-aux/update-copyright b/build-aux/update-copyright index 5b11e306cd..ab29c633cf 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" "$@"' if 0; # Update an FSF copyright year list to include the current year. -my $VERSION = '2017-09-13.06:45'; # UTC +my $VERSION = '2018-01-04.14:48'; # UTC # Copyright (C) 2009-2018 Free Software Foundation, Inc. # @@ -81,6 +81,7 @@ my $VERSION = '2017-09-13.06:45'; # UTC # B. (c) # C. @copyright{} # D. © +# E. © # # 4. The "Copyright" appears at the beginning of a line, except that it # may be prefixed by any sequence (e.g., a comment) of no more than @@ -124,7 +125,7 @@ use strict; use warnings; my $copyright_re = 'Copyright'; -my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©)'; +my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©|©)'; my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; $holder ||= 'Free Software Foundation, Inc.'; my $prefix_max = 5;