~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to build-aux/update-copyright

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
    if 0;
4
4
# Update an FSF copyright year list to include the current year.
5
5
 
6
 
my $VERSION = '2011-01-02.20:59'; # UTC
 
6
my $VERSION = '2012-02-05.21:39'; # UTC
7
7
 
8
 
# Copyright (C) 2009-2011 Free Software Foundation, Inc.
 
8
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
9
9
#
10
10
# This program is free software: you can redistribute it and/or modify
11
11
# it under the terms of the GNU General Public License as published by
24
24
 
25
25
# The arguments to this script should be names of files that contain
26
26
# copyright statements to be updated.  The copyright holder's name
27
 
# defaults to "Free Softward Foundation, Inc." but may be changed to
 
27
# defaults to "Free Software Foundation, Inc." but may be changed to
28
28
# any other name by using the "UPDATE_COPYRIGHT_HOLDER" environment
29
29
# variable.
30
30
#
43
43
# A warning is printed for every file for which no copyright
44
44
# statement is recognized.
45
45
#
46
 
# Each file's copyright statement must be formated correctly in
 
46
# Each file's copyright statement must be formatted correctly in
47
47
# order to be recognized.  For example, each of these is fine:
48
48
#
49
49
#   Copyright @copyright{} 1990-2005, 2007-2009 Free Software
110
110
#      interval (such as 1990-2008).  If unset or set to 0, all existing
111
111
#      copyright year intervals in a reformatted FSF copyright statement
112
112
#      are expanded instead.
 
113
#      If UPDATE_COPYRIGHT_USE_INTERVALS=2, convert a sequence with gaps
 
114
#      to the minimal containing range.  For example, convert
 
115
#      2000, 2004-2007, 2009 to 2000-2009.
113
116
#   3. For testing purposes, you can set the assumed current year in
114
117
#      UPDATE_COPYRIGHT_YEAR.
115
118
#   4. The default maximum line length for a copyright line is 72.
221
224
                  }))
222
225
                )+
223
226
              /$1-$3/gx;
 
227
 
 
228
            # When it's 2, emit a single range encompassing all year numbers.
 
229
            $ENV{UPDATE_COPYRIGHT_USE_INTERVALS} == 2
 
230
              and $stmt =~ s/\b(\d{4})\b.*\b(\d{4})\b/$1-$2/;
224
231
          }
225
232
 
226
233
        # Format within margin.