summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-10-14 13:07:19 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-10-14 13:07:40 -0700
commit82ba8d96586277b6593f2e763229ab721da69d1a (patch)
treef87a08dbf3ea3fd32d7b54e8fc42310269328c5e /build-aux
parent6cfb4302b3e1da14d706198b693558290e9b00f4 (diff)
downloadgnulib-82ba8d96586277b6593f2e763229ab721da69d1a.tar.gz
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.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/update-copyright2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/update-copyright b/build-aux/update-copyright
index b3f6b29805..89ca9bac96 100755
--- a/build-aux/update-copyright
+++ b/build-aux/update-copyright
@@ -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/)
{