]> Savannah Git Hosting - gnulib.git/commitdiff
update-copyright: allow en dashes in year ranges
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Oct 2019 20:07:19 +0000 (13:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Oct 2019 20:07:40 +0000 (13:07 -0700)
* build-aux/update-copyright: Match year ranges like "1998--2019",
which are used in the Autoconf manual.

ChangeLog
build-aux/update-copyright

index d27674fa6ba65f72512f28eddd7de071535d4a22..ae7adbbd52d8e4aab79470ca8e7acc80e9f1c4fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+       update-copyright: allow en dashes in year ranges
+       * build-aux/update-copyright: Match year ranges like "1998--2019",
+       which are used in the Autoconf manual.
+
 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        * config/srclist.txt: Remove posix/regex_internal.c for now.
index b3f6b298056d91efd44d66f5c9ad44d89794f9f3..89ca9bac9650ad8c2d595be28add125459166c3b 100755 (executable)
@@ -192,7 +192,7 @@ while (/(^|\n)(.{0,$prefix_max})$copyright_re/g)
     $holder_re =~ s/\s/$ws_re/g;
     my $stmt_remainder_re =
       "(?:$ws_re$circle_c_re)?"
-      . "$ws_re(?:(?:\\d\\d)?\\d\\d(?:,$ws_re?|-))*"
+      . "$ws_re(?:(?:\\d\\d)?\\d\\d(?:,$ws_re?|--?))*"
       . "((?:\\d\\d)?\\d\\d)$ws_re$holder_re";
     if (/\G$stmt_remainder_re/)
       {