From db16e845e4b47b034e790e8c6ccd24a90cb378cf Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sun, 2 Jan 2011 20:02:03 +0100 Subject: [PATCH] build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER environment variable. --- ChangeLog | 5 +++++ build-aux/update-copyright | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9169a7434..629336098 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-02 Simon Josefsson + + * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER + environment variable. + 2011-01-02 Bruno Haible unigbrk: Avoid gcc warnings. diff --git a/build-aux/update-copyright b/build-aux/update-copyright index 51546cca7..db59cc7f1 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: -- 2.11.0