]> Savannah Git Hosting - gnulib.git/commitdiff
update-copyright: Handle use of ©
authorMathieu Lirzin <mthl@gnu.org>
Thu, 4 Jan 2018 14:59:04 +0000 (15:59 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Jan 2018 20:33:53 +0000 (21:33 +0100)
* build-aux/update-copyright ($circle_c_re): Update regex to
handle use of © in headers.

ChangeLog
build-aux/update-copyright

index 3f2d8ce5b288b695e5784fe17a025cdedf1ba3cc..13e868aca8b832615332e4e19923a7b32ebb6a4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
+
+       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  <tim.ruehsen@gmx.de>
 
        Fix -Wundef warning in user-included header lib/cdefs.h.
index 5b11e306cdcf5ee86db6e195063a567c5b542a90..ab29c633cf75041b43c23ed65a0e58c2750ebcd2 100755 (executable)
@@ -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. &copy;
+#        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|&copy;)';
+my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|&copy;)';
 my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER};
 $holder ||= 'Free Software Foundation, Inc.';
 my $prefix_max = 5;