[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: update-copyright for non-FSF copyright notices?
From: |
Simon Josefsson |
Subject: |
Re: update-copyright for non-FSF copyright notices? |
Date: |
Sun, 02 Jan 2011 21:31:45 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Bruce Korb <address@hidden> writes:
> On 01/02/11 11:02, Simon Josefsson wrote:
>> Jim Meyering <address@hidden> writes:
>>
>>> Simon Josefsson wrote:
>>>> How about this patch? Not all projects are copyright'ed by the FSF.
>>>> The patch makes it possible to override the otherwise hard-coded string,
>>>> thought cfg.mk and without modifying the update-copyright script iself.
>>>
>>> I like it.
>>> One suggestion before you push it:
>
> Another suggestion :)
Fine with me. Ok to push, Jim? Bruce, feel free to push it if I don't
(probably won't have more time until Tuesday).
/Simon
> diff --git a/build-aux/update-copyright b/build-aux/update-copyright
> index db59cc7..9961732 100755
> --- a/build-aux/update-copyright
> +++ b/build-aux/update-copyright
> @@ -22,12 +22,17 @@ my $VERSION = '2011-01-02.19:00'; # UTC
>
> # Written by Jim Meyering and Joel E. Denny
>
> -# The arguments to this script should be names of files that contain FSF
> -# copyright statements to be updated. For example, you might wish to
> +# The arguments to this script should be names of files that contain
> +# copyright statements to be updated. The copyright holder's name
> +# defaults to "Free Softward Foundation, Inc." but may be changed to
> +# any other name by using the "UPDATE_COPYRIGHT_HOLDER" environment
> +# variable.
> +#
> +# For example, you might wish to
> # use the update-copyright target rule in maint.mk from gnulib's
> # maintainer-makefile module.
> #
> -# Iff an FSF copyright statement is recognized in a file and the final
> +# Iff a copyright statement is recognized in a file and the final
> # year is not the current year, then the statement is updated for the
> # new year and it is reformatted to:
> #
> @@ -36,10 +41,10 @@ my $VERSION = '2011-01-02.19:00'; # UTC
> # 3. Expand copyright year intervals. (See "Environment variables"
> # below.)
> #
> -# A warning is printed for every file for which no FSF copyright
> +# A warning is printed for every file for which no copyright
> # statement is recognized.
> #
> -# Each file's FSF copyright statement must be formated correctly in
> +# Each file's copyright statement must be formated correctly in
> # order to be recognized. For example, each of these is fine:
> #
> # Copyright @copyright{} 1990-2005, 2007-2009 Free Software
> @@ -59,23 +64,17 @@ my $VERSION = '2011-01-02.19:00'; # UTC
> # ## Copyright (C) 1990-2005, 2007-2009 Free Software
> # # Foundation, Inc.
> #
> -# The following copyright statement is not recognized because the
> -# copyright holder is not the FSF:
> -#
> -# Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
> -#
> -# However, any correctly formatted FSF copyright statement following
> -# either of the previous two copyright statements would be recognized.
> +# However, any correctly formatted copyright statement following
> +# a non-matching copyright statements would be recognized.
> #
> -# The exact conditions that a file's FSF copyright statement must meet
> +# The exact conditions that a file's copyright statement must meet
> # to be recognized are:
> #
> -# 1. It is the first FSF copyright statement that meets all of the
> -# following conditions. Subsequent FSF copyright statements are
> +# 1. It is the first copyright statement that meets all of the
> +# following conditions. Subsequent copyright statements are
> # ignored.
> # 2. Its format is "Copyright (C)", then a list of copyright years,
> -# and then the name of the copyright holder, which is "Free
> -# Software Foundation, Inc.".
> +# and then the name of the copyright holder.
> # 3. The "(C)" takes one of the following forms or is omitted
> # entirely:
> #
> @@ -84,9 +83,9 @@ my $VERSION = '2011-01-02.19:00'; # UTC
> # C. @copyright{}
> # D. ©
> #
> -# 4. The "Copyright" appears at the beginning of a line except that it
> +# 4. The "Copyright" appears at the beginning of a line, except that it
> # may be prefixed by any sequence (e.g., a comment) of no more than
> -# 5 characters.
> +# 5 characters -- including white space.
> # 5. Iff such a prefix is present, the same prefix appears at the
> # beginning of each remaining line within the FSF copyright
> # statement. There is one exception in order to support C-style