diff options
author | Simon Josefsson <simon@josefsson.org> | 2012-03-07 10:26:44 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2012-03-07 10:27:54 +0100 |
commit | 2259a29c5ae7c34c7709235c96f47a069c2394bb (patch) | |
tree | f320f84742192dfe418df9bc16d4dd46b974463f /build-aux | |
parent | 3332d9cab1e9ab8b6c991c7ff0f4a2bda1ea7544 (diff) | |
download | libtasn1-2259a29c5ae7c34c7709235c96f47a069c2394bb.tar.gz libtasn1-2259a29c5ae7c34c7709235c96f47a069c2394bb.tar.bz2 libtasn1-2259a29c5ae7c34c7709235c96f47a069c2394bb.zip |
Update gnulib files.
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/update-copyright | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/build-aux/update-copyright b/build-aux/update-copyright index d86a12b..082b749 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}' if 0; # Update an FSF copyright year list to include the current year. -my $VERSION = '2011-01-02.20:59'; # UTC +my $VERSION = '2012-02-05.21:39'; # UTC # Copyright (C) 2009-2012 Free Software Foundation, Inc. # @@ -24,7 +24,7 @@ my $VERSION = '2011-01-02.20:59'; # UTC # The arguments to this script should be names of files that contain # copyright statements to be updated. The copyright holder's name -# defaults to "Free Softward Foundation, Inc." but may be changed to +# defaults to "Free Software Foundation, Inc." but may be changed to # any other name by using the "UPDATE_COPYRIGHT_HOLDER" environment # variable. # @@ -43,7 +43,7 @@ my $VERSION = '2011-01-02.20:59'; # UTC # A warning is printed for every file for which no copyright # statement is recognized. # -# Each file's copyright statement must be formated correctly in +# Each file's copyright statement must be formatted correctly in # order to be recognized. For example, each of these is fine: # # Copyright @copyright{} 1990-2005, 2007-2009 Free Software @@ -110,6 +110,9 @@ my $VERSION = '2011-01-02.20:59'; # UTC # interval (such as 1990-2008). If unset or set to 0, all existing # copyright year intervals in a reformatted FSF copyright statement # are expanded instead. +# If UPDATE_COPYRIGHT_USE_INTERVALS=2, convert a sequence with gaps +# to the minimal containing range. For example, convert +# 2000, 2004-2007, 2009 to 2000-2009. # 3. For testing purposes, you can set the assumed current year in # UPDATE_COPYRIGHT_YEAR. # 4. The default maximum line length for a copyright line is 72. @@ -221,6 +224,10 @@ if (defined $stmt_re) })) )+ /$1-$3/gx; + + # When it's 2, emit a single range encompassing all year numbers. + $ENV{UPDATE_COPYRIGHT_USE_INTERVALS} == 2 + and $stmt =~ s/\b(\d{4})\b.*\b(\d{4})\b/$1-$2/; } # Format within margin. |