diff options
author | Simon Josefsson <simon@josefsson.org> | 2011-01-02 20:02:03 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2011-01-02 20:02:03 +0100 |
commit | db16e845e4b47b034e790e8c6ccd24a90cb378cf (patch) | |
tree | e3a124a03104f48f811e8c802be48c31541ee3f1 /build-aux | |
parent | 8887fa6665320b476fdf7e0ac680f7ce736ba37d (diff) | |
download | gnulib-db16e845e4b47b034e790e8c6ccd24a90cb378cf.tar.gz |
build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER environment variable.
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/update-copyright | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build-aux/update-copyright b/build-aux/update-copyright index 51546cca78..db59cc7f15 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 = '2009-12-28.11:09'; # UTC +my $VERSION = '2011-01-02.19:00'; # UTC # Copyright (C) 2009-2011 Free Software Foundation, Inc. # @@ -122,7 +122,8 @@ use warnings; my $copyright_re = 'Copyright'; my $circle_c_re = '(?:\([cC]\)|@copyright{}|©)'; -my $holder = 'Free Software Foundation, Inc.'; +my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; +$holder ||= 'Free Software Foundation, Inc.'; my $prefix_max = 5; my $margin = $ENV{UPDATE_COPYRIGHT_MAX_LINE_LENGTH}; !$margin || $margin !~ m/^\d+$/ @@ -252,7 +253,7 @@ if (defined $stmt_re) } else { - print STDERR "$ARGV: warning: FSF copyright statement not found\n"; + print STDERR "$ARGV: warning: copyright statement not found\n"; } # Local variables: |