summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-01-02 20:02:03 +0100
committerSimon Josefsson <simon@josefsson.org>2011-01-02 20:02:03 +0100
commitdb16e845e4b47b034e790e8c6ccd24a90cb378cf (patch)
treee3a124a03104f48f811e8c802be48c31541ee3f1 /build-aux
parent8887fa6665320b476fdf7e0ac680f7ce736ba37d (diff)
downloadgnulib-db16e845e4b47b034e790e8c6ccd24a90cb378cf.tar.gz
build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER environment variable.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/update-copyright7
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{}|&copy;)';
-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: