X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/585935e895126be36585a2c0684c38f66fa0ada7..7d424de14c0385012d328642bec6874c8e6cef17:/build-aux/update-b4-copyright?ds=sidebyside diff --git a/build-aux/update-b4-copyright b/build-aux/update-b4-copyright index 30c38013..63a33359 100755 --- a/build-aux/update-b4-copyright +++ b/build-aux/update-b4-copyright @@ -3,8 +3,8 @@ # Update b4_copyright invocations or b4_copyright_years definitions to # include the current year. -# Copyright (C) 2009 Free Software Foundation, Inc. -# +# Copyright (C) 2009, 2010 Free Software Foundation, Inc. + # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) @@ -73,19 +73,10 @@ while (/($old_re)/gx) # Put spaces after commas. $year_lines =~ s/, ?/, /g; - # Compress to intervals. - $year_lines =~ - s/ - (\d{4}) - (?: - (,\ |-) - ((??{ - if ($2 eq '-') { '\d{4}'; } - elsif (!$3) { $1 + 1; } - else { $3 + 1; } - })) - )+ - /$1-$3/gx; + # Do not compress to intervals; for example, do not replace + # "2008, 2009, 2010" with "2008-2010". See the Copyright + # Notices section in Information for Maintainers of GNU Software, at: + # http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices # Format within margin. my $year_lines_new;