X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=build-aux%2Fupdate-copyright;h=28ff44180e75e8a305c4edee0bf1d9e7755d2370;hb=3f85d1cdb41532f66db70743dd3508788a02ee2f;hp=bd0dda5dcb1a966ca6d1cef29213dd673b6e4978;hpb=b49d23eb556dc8b7283315e057926b9bf428ec8d;p=gnulib.git diff --git a/build-aux/update-copyright b/build-aux/update-copyright index bd0dda5dc..28ff44180 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -1,11 +1,13 @@ -#!/usr/bin/perl -0777 -pi +eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}' + & eval 'exec perl -wS -0777 -pi "$0" $argv:q' + if 0; # Update an FSF copyright year list to include the current year. -my $VERSION = '2009-08-14.18:56'; # UTC +my $VERSION = '2009-12-28.11:09'; # UTC -# Copyright (C) 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2010 Free Software Foundation, Inc. # -# This program is free software; you can redistribute it and/or modify +# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. @@ -112,6 +114,8 @@ my $VERSION = '2009-08-14.18:56'; # UTC # are expanded instead. # 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. +# Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH to use a different length. use strict; use warnings; @@ -120,7 +124,10 @@ my $copyright_re = 'Copyright'; my $circle_c_re = '(?:\([cC]\)|@copyright{}|©)'; my $holder = 'Free Software Foundation, Inc.'; my $prefix_max = 5; -my $margin = 72; +my $margin = $ENV{UPDATE_COPYRIGHT_MAX_LINE_LENGTH}; +!$margin || $margin !~ m/^\d+$/ + and $margin = 72; + my $tab_width = 8; my $this_year = $ENV{UPDATE_COPYRIGHT_YEAR}; @@ -249,6 +256,7 @@ else } # Local variables: +# mode: perl # indent-tabs-mode: nil # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "my $VERSION = '"