Mercurial > hg > octave-lojdl > gnulib-hg
changeset 14088:10ce6a82b5d7
build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER environment variable.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Sun, 02 Jan 2011 20:02:03 +0100 |
parents | 5400154288e5 |
children | 1e4c1e8b49a6 |
files | ChangeLog build-aux/update-copyright |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-02 Simon Josefsson <simon@josefsson.org> + + * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER + environment variable. + 2011-01-02 Bruno Haible <bruno@clisp.org> unigbrk: Avoid gcc warnings.
--- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -3,7 +3,7 @@ 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 @@ 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 @@ } else { - print STDERR "$ARGV: warning: FSF copyright statement not found\n"; + print STDERR "$ARGV: warning: copyright statement not found\n"; } # Local variables: