* [PATCH] update-copyright: allow en dashes in year ranges
@ 2019-10-14 20:07 Paul Eggert
0 siblings, 0 replies; only message in thread
From: Paul Eggert @ 2019-10-14 20:07 UTC (permalink / raw)
To: bug-gnulib; +Cc: Paul Eggert
* build-aux/update-copyright: Match year ranges like "1998--2019",
which are used in the Autoconf manual.
---
ChangeLog | 6 ++++++
build-aux/update-copyright | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d27674fa6..ae7adbbd5 100644
--- 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.
diff --git a/build-aux/update-copyright b/build-aux/update-copyright
index b3f6b2980..89ca9bac9 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/)
{
--
2.21.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-14 20:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-14 20:07 [PATCH] update-copyright: allow en dashes in year ranges Paul Eggert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).