diff options
| author | Paul Eggert | 2013-12-24 10:27:53 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-12-24 10:27:53 -0800 |
| commit | 9ebada6af6d3c3c4195e6b56b3d65dcf20568fba (patch) | |
| tree | d05fc530b70ff0e6f9dc8cd091405e10e0a6aa53 | |
| parent | eeef121a18b0317cbe739e104c0b024289e4b851 (diff) | |
| download | emacs-9ebada6af6d3c3c4195e6b56b3d65dcf20568fba.tar.gz emacs-9ebada6af6d3c3c4195e6b56b3d65dcf20568fba.zip | |
Automate the procedure for updating copyright year.
* admin/merge-gnulib (GNULIB_MODULES): Add update-copyright.
* admin/notes/years: Mention admin/update-copyright.
* admin/update-copyright: New file.
* build-aux/update-copyright: New file.
* make-dist: Distribute it.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* msdos/autogen/Makefile.in: Update copyright year.
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | admin/ChangeLog | 7 | ||||
| -rwxr-xr-x | admin/merge-gnulib | 3 | ||||
| -rw-r--r-- | admin/notes/years | 6 | ||||
| -rwxr-xr-x | admin/update-copyright | 75 | ||||
| -rwxr-xr-x | build-aux/update-copyright | 274 | ||||
| -rw-r--r-- | lib/gnulib.mk | 9 | ||||
| -rw-r--r-- | m4/gnulib-comp.m4 | 2 | ||||
| -rwxr-xr-x | make-dist | 3 | ||||
| -rw-r--r-- | msdos/autogen/Makefile.in | 4 |
10 files changed, 383 insertions, 8 deletions
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-12-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Automate the procedure for updating copyright year. | ||
| 4 | * build-aux/update-copyright: New file. | ||
| 5 | * make-dist: Distribute it. | ||
| 6 | * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. | ||
| 7 | * msdos/autogen/Makefile.in: Update copyright year. | ||
| 8 | |||
| 1 | 2013-12-23 Andreas Schwab <schwab@linux-m68k.org> | 9 | 2013-12-23 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 10 | ||
| 3 | * configure.ac: Replace obsolete macro AC_CONFIG_HEADER by | 11 | * configure.ac: Replace obsolete macro AC_CONFIG_HEADER by |
diff --git a/admin/ChangeLog b/admin/ChangeLog index 40d1e069f03..ea47a6798b5 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-12-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Automate the procedure for updating copyright year. | ||
| 4 | * merge-gnulib (GNULIB_MODULES): Add update-copyright. | ||
| 5 | * notes/years: Mention admin/update-copyright. | ||
| 6 | * update-copyright: New file. | ||
| 7 | |||
| 1 | 2013-12-24 Xue Fuqiao <xfq.free@gmail.com> | 8 | 2013-12-24 Xue Fuqiao <xfq.free@gmail.com> |
| 2 | 9 | ||
| 3 | * admin.el (add-release-logs): | 10 | * admin.el (add-release-logs): |
diff --git a/admin/merge-gnulib b/admin/merge-gnulib index af9300edbec..a86630f9e17 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib | |||
| @@ -37,7 +37,8 @@ GNULIB_MODULES=' | |||
| 37 | pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat | 37 | pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat |
| 38 | sig2str socklen stat-time stdalign stdarg stdbool stdio | 38 | sig2str socklen stat-time stdalign stdarg stdbool stdio |
| 39 | strftime strtoimax strtoumax symlink sys_stat | 39 | strftime strtoimax strtoumax symlink sys_stat |
| 40 | sys_time time timer-time timespec-add timespec-sub unsetenv utimens | 40 | sys_time time timer-time timespec-add timespec-sub |
| 41 | unsetenv update-copyright utimens | ||
| 41 | warnings | 42 | warnings |
| 42 | ' | 43 | ' |
| 43 | 44 | ||
diff --git a/admin/notes/years b/admin/notes/years index e6b38c5aefd..57cb5ad7e4f 100644 --- a/admin/notes/years +++ b/admin/notes/years | |||
| @@ -2,6 +2,8 @@ HOW TO MAINTAIN COPYRIGHT YEARS FOR GNU EMACS | |||
| 2 | 2 | ||
| 3 | Maintaining copyright years is now very simple: every time a new year | 3 | Maintaining copyright years is now very simple: every time a new year |
| 4 | rolls around, add that year to every FSF (and AIST) copyright notice. | 4 | rolls around, add that year to every FSF (and AIST) copyright notice. |
| 5 | Do this by running the 'admin/update-copyright' script on a fresh bzr | ||
| 6 | checkout. Inspect the results for plausiblity, then commit them. | ||
| 5 | 7 | ||
| 6 | There's no need to worry about whether an individual file has changed | 8 | There's no need to worry about whether an individual file has changed |
| 7 | in a given year - it's sufficient that Emacs as a whole has changed. | 9 | in a given year - it's sufficient that Emacs as a whole has changed. |
| @@ -28,10 +30,10 @@ but should keep the full list in a comment in the source. | |||
| 28 | since Emacs 21 came out in 2001, all the subsequent years[1]. We don't | 30 | since Emacs 21 came out in 2001, all the subsequent years[1]. We don't |
| 29 | need to check whether *that file* was changed in those years. | 31 | need to check whether *that file* was changed in those years. |
| 30 | It's sufficient that *Emacs* was changed in those years (and it was!). | 32 | It's sufficient that *Emacs* was changed in those years (and it was!). |
| 31 | 33 | ||
| 32 | For those files that have been added since then, we should add | 34 | For those files that have been added since then, we should add |
| 33 | the year it was added to Emacs, and all subsequent years." | 35 | the year it was added to Emacs, and all subsequent years." |
| 34 | 36 | ||
| 35 | --RMS, 2005-07-13 | 37 | --RMS, 2005-07-13 |
| 36 | 38 | ||
| 37 | [1] Note that this includes 2001 - see | 39 | [1] Note that this includes 2001 - see |
diff --git a/admin/update-copyright b/admin/update-copyright new file mode 100755 index 00000000000..64653d97237 --- /dev/null +++ b/admin/update-copyright | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | # Update the copyright dates in Emacs sources. | ||
| 3 | # Typical usage: | ||
| 4 | # | ||
| 5 | # admin/update-copyright | ||
| 6 | # | ||
| 7 | # By default, this script uses the local-time calendar year. | ||
| 8 | # Set the UPDATE_COPYRIGHT_YEAR environment variable to override the default. | ||
| 9 | |||
| 10 | # Copyright 2013 Free Software Foundation, Inc. | ||
| 11 | |||
| 12 | # This file is part of GNU Emacs. | ||
| 13 | |||
| 14 | # GNU Emacs is free software: you can redistribute it and/or modify | ||
| 15 | # it under the terms of the GNU General Public License as published by | ||
| 16 | # the Free Software Foundation, either version 3 of the License, or | ||
| 17 | # (at your option) any later version. | ||
| 18 | |||
| 19 | # GNU Emacs is distributed in the hope that it will be useful, | ||
| 20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 22 | # GNU General Public License for more details. | ||
| 23 | |||
| 24 | # You should have received a copy of the GNU General Public License | ||
| 25 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 26 | |||
| 27 | # written by Paul Eggert | ||
| 28 | |||
| 29 | # FIXME: The file 'notes/copyright' says that the AIST copyright years | ||
| 30 | # should be updated, but by inspection it appears that some should be | ||
| 31 | # updated and some should not be, due to registration numbers, so | ||
| 32 | # this script leaves these copyright years alone for now. | ||
| 33 | |||
| 34 | : ${UPDATE_COPYRIGHT_USE_INTERVALS=1} | ||
| 35 | export UPDATE_COPYRIGHT_USE_INTERVALS | ||
| 36 | |||
| 37 | : ${UPDATE_COPYRIGHT_YEAR=$(date +%Y)} | ||
| 38 | export UPDATE_COPYRIGHT_YEAR | ||
| 39 | |||
| 40 | emacsver=etc/refcards/emacsver.tex | ||
| 41 | sed 's/\\def\\year[{][0-9]*[}]/\\def\\year{'"$UPDATE_COPYRIGHT_YEAR"'}'/g \ | ||
| 42 | $emacsver >$emacsver.aux && | ||
| 43 | { cmp -s $emacsver $emacsver.aux || | ||
| 44 | cp $emacsver.aux $emacsver | ||
| 45 | } && | ||
| 46 | rm $emacsver.aux && | ||
| 47 | |||
| 48 | bzr_files=$(bzr ls -RV --kind file) && | ||
| 49 | |||
| 50 | # Do not update the copyright of files that have one or more of the | ||
| 51 | # following problems: | ||
| 52 | # . They are license files, maintained by the FSF, with their own dates. | ||
| 53 | # . Their format cannot withstand changing the contents of copyright strings. | ||
| 54 | |||
| 55 | updatable_files=$(find $bzr_files \ | ||
| 56 | ! -name COPYING \ | ||
| 57 | ! -name doclicense.texi \ | ||
| 58 | ! -name gpl.texi \ | ||
| 59 | ! -name '*-gzipped' \ | ||
| 60 | ! -name '*.ico' \ | ||
| 61 | ! -name '*.icns' \ | ||
| 62 | ! -name '*.pbm' \ | ||
| 63 | ! -name '*.pdf' \ | ||
| 64 | ! -name '*.png' \ | ||
| 65 | ! -name '*.sig' \ | ||
| 66 | ! -name '*.tar' \ | ||
| 67 | ! -name '*.tiff' \ | ||
| 68 | ! -name '*.xpm' \ | ||
| 69 | ! -name eterm-color \ | ||
| 70 | ! -name hand.cur \ | ||
| 71 | ! -name key.pub \ | ||
| 72 | ! -name key.sec \ | ||
| 73 | -print) && | ||
| 74 | |||
| 75 | build-aux/update-copyright $updatable_files | ||
diff --git a/build-aux/update-copyright b/build-aux/update-copyright new file mode 100755 index 00000000000..c72d0e67da7 --- /dev/null +++ b/build-aux/update-copyright | |||
| @@ -0,0 +1,274 @@ | |||
| 1 | eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}' | ||
| 2 | & eval 'exec perl -wS -0777 -pi "$0" $argv:q' | ||
| 3 | if 0; | ||
| 4 | # Update an FSF copyright year list to include the current year. | ||
| 5 | |||
| 6 | my $VERSION = '2013-01-03.09:41'; # UTC | ||
| 7 | |||
| 8 | # Copyright (C) 2009-2013 Free Software Foundation, Inc. | ||
| 9 | # | ||
| 10 | # This program is free software: you can redistribute it and/or modify | ||
| 11 | # it under the terms of the GNU General Public License as published by | ||
| 12 | # the Free Software Foundation; either version 3, or (at your option) | ||
| 13 | # any later version. | ||
| 14 | # | ||
| 15 | # This program is distributed in the hope that it will be useful, | ||
| 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | # GNU General Public License for more details. | ||
| 19 | # | ||
| 20 | # You should have received a copy of the GNU General Public License | ||
| 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 22 | |||
| 23 | # Written by Jim Meyering and Joel E. Denny | ||
| 24 | |||
| 25 | # The arguments to this script should be names of files that contain | ||
| 26 | # copyright statements to be updated. The copyright holder's name | ||
| 27 | # defaults to "Free Software Foundation, Inc." but may be changed to | ||
| 28 | # any other name by using the "UPDATE_COPYRIGHT_HOLDER" environment | ||
| 29 | # variable. | ||
| 30 | # | ||
| 31 | # For example, you might wish to use the update-copyright target rule | ||
| 32 | # in maint.mk from gnulib's maintainer-makefile module. | ||
| 33 | # | ||
| 34 | # Iff a copyright statement is recognized in a file and the final | ||
| 35 | # year is not the current year, then the statement is updated for the | ||
| 36 | # new year and it is reformatted to: | ||
| 37 | # | ||
| 38 | # 1. Fit within 72 columns. | ||
| 39 | # 2. Convert 2-digit years to 4-digit years by prepending "19". | ||
| 40 | # 3. Expand copyright year intervals. (See "Environment variables" | ||
| 41 | # below.) | ||
| 42 | # | ||
| 43 | # A warning is printed for every file for which no copyright | ||
| 44 | # statement is recognized. | ||
| 45 | # | ||
| 46 | # Each file's copyright statement must be formatted correctly in | ||
| 47 | # order to be recognized. For example, each of these is fine: | ||
| 48 | # | ||
| 49 | # Copyright @copyright{} 1990-2005, 2007-2009 Free Software | ||
| 50 | # Foundation, Inc. | ||
| 51 | # | ||
| 52 | # # Copyright (C) 1990-2005, 2007-2009 Free Software | ||
| 53 | # # Foundation, Inc. | ||
| 54 | # | ||
| 55 | # /* | ||
| 56 | # * Copyright © 90,2005,2007-2009 | ||
| 57 | # * Free Software Foundation, Inc. | ||
| 58 | # */ | ||
| 59 | # | ||
| 60 | # However, the following format is not recognized because the line | ||
| 61 | # prefix changes after the first line: | ||
| 62 | # | ||
| 63 | # ## Copyright (C) 1990-2005, 2007-2009 Free Software | ||
| 64 | # # Foundation, Inc. | ||
| 65 | # | ||
| 66 | # However, any correctly formatted copyright statement following | ||
| 67 | # a non-matching copyright statements would be recognized. | ||
| 68 | # | ||
| 69 | # The exact conditions that a file's copyright statement must meet | ||
| 70 | # to be recognized are: | ||
| 71 | # | ||
| 72 | # 1. It is the first copyright statement that meets all of the | ||
| 73 | # following conditions. Subsequent copyright statements are | ||
| 74 | # ignored. | ||
| 75 | # 2. Its format is "Copyright (C)", then a list of copyright years, | ||
| 76 | # and then the name of the copyright holder. | ||
| 77 | # 3. The "(C)" takes one of the following forms or is omitted | ||
| 78 | # entirely: | ||
| 79 | # | ||
| 80 | # A. (C) | ||
| 81 | # B. (c) | ||
| 82 | # C. @copyright{} | ||
| 83 | # D. © | ||
| 84 | # | ||
| 85 | # 4. The "Copyright" appears at the beginning of a line, except that it | ||
| 86 | # may be prefixed by any sequence (e.g., a comment) of no more than | ||
| 87 | # 5 characters -- including white space. | ||
| 88 | # 5. Iff such a prefix is present, the same prefix appears at the | ||
| 89 | # beginning of each remaining line within the FSF copyright | ||
| 90 | # statement. There is one exception in order to support C-style | ||
| 91 | # comments: if the first line's prefix contains nothing but | ||
| 92 | # whitespace surrounding a "/*", then the prefix for all subsequent | ||
| 93 | # lines is the same as the first line's prefix except with each of | ||
| 94 | # "/" and possibly "*" replaced by a " ". The replacement of "*" | ||
| 95 | # by " " is consistent throughout all subsequent lines. | ||
| 96 | # 6. Blank lines, even if preceded by the prefix, do not appear | ||
| 97 | # within the FSF copyright statement. | ||
| 98 | # 7. Each copyright year is 2 or 4 digits, and years are separated by | ||
| 99 | # commas or dashes. Whitespace may appear after commas. | ||
| 100 | # | ||
| 101 | # Environment variables: | ||
| 102 | # | ||
| 103 | # 1. If UPDATE_COPYRIGHT_FORCE=1, a recognized FSF copyright statement | ||
| 104 | # is reformatted even if it does not need updating for the new | ||
| 105 | # year. If unset or set to 0, only updated FSF copyright | ||
| 106 | # statements are reformatted. | ||
| 107 | # 2. If UPDATE_COPYRIGHT_USE_INTERVALS=1, every series of consecutive | ||
| 108 | # copyright years (such as 90, 1991, 1992-2007, 2008) in a | ||
| 109 | # reformatted FSF copyright statement is collapsed to a single | ||
| 110 | # interval (such as 1990-2008). If unset or set to 0, all existing | ||
| 111 | # copyright year intervals in a reformatted FSF copyright statement | ||
| 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. | ||
| 116 | # 3. For testing purposes, you can set the assumed current year in | ||
| 117 | # UPDATE_COPYRIGHT_YEAR. | ||
| 118 | # 4. The default maximum line length for a copyright line is 72. | ||
| 119 | # Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH to use a different length. | ||
| 120 | # 5. Set UPDATE_COPYRIGHT_HOLDER if the copyright holder is other | ||
| 121 | # than "Free Software Foundation, Inc.". | ||
| 122 | |||
| 123 | use strict; | ||
| 124 | use warnings; | ||
| 125 | |||
| 126 | my $copyright_re = 'Copyright'; | ||
| 127 | my $circle_c_re = '(?:\([cC]\)|@copyright{}|©)'; | ||
| 128 | my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; | ||
| 129 | $holder ||= 'Free Software Foundation, Inc.'; | ||
| 130 | my $prefix_max = 5; | ||
| 131 | my $margin = $ENV{UPDATE_COPYRIGHT_MAX_LINE_LENGTH}; | ||
| 132 | !$margin || $margin !~ m/^\d+$/ | ||
| 133 | and $margin = 72; | ||
| 134 | |||
| 135 | my $tab_width = 8; | ||
| 136 | |||
| 137 | my $this_year = $ENV{UPDATE_COPYRIGHT_YEAR}; | ||
| 138 | if (!$this_year || $this_year !~ m/^\d{4}$/) | ||
| 139 | { | ||
| 140 | my ($sec, $min, $hour, $mday, $month, $year) = localtime (time ()); | ||
| 141 | $this_year = $year + 1900; | ||
| 142 | } | ||
| 143 | |||
| 144 | # Unless the file consistently uses "\r\n" as the EOL, use "\n" instead. | ||
| 145 | my $eol = /(?:^|[^\r])\n/ ? "\n" : "\r\n"; | ||
| 146 | |||
| 147 | my $leading; | ||
| 148 | my $prefix; | ||
| 149 | my $ws_re; | ||
| 150 | my $stmt_re; | ||
| 151 | while (/(^|\n)(.{0,$prefix_max})$copyright_re/g) | ||
| 152 | { | ||
| 153 | $leading = "$1$2"; | ||
| 154 | $prefix = $2; | ||
| 155 | if ($prefix =~ /^(\s*\/)\*(\s*)$/) | ||
| 156 | { | ||
| 157 | $prefix =~ s,/, ,; | ||
| 158 | my $prefix_ws = $prefix; | ||
| 159 | $prefix_ws =~ s/\*/ /; # Only whitespace. | ||
| 160 | if (/\G(?:[^*\n]|\*[^\/\n])*\*?\n$prefix_ws/) | ||
| 161 | { | ||
| 162 | $prefix = $prefix_ws; | ||
| 163 | } | ||
| 164 | } | ||
| 165 | $ws_re = '[ \t\r\f]'; # \s without \n | ||
| 166 | $ws_re = | ||
| 167 | "(?:$ws_re*(?:$ws_re|\\n" . quotemeta($prefix) . ")$ws_re*)"; | ||
| 168 | my $holder_re = $holder; | ||
| 169 | $holder_re =~ s/\s/$ws_re/g; | ||
| 170 | my $stmt_remainder_re = | ||
| 171 | "(?:$ws_re$circle_c_re)?" | ||
| 172 | . "$ws_re(?:(?:\\d\\d)?\\d\\d(?:,$ws_re?|-))*" | ||
| 173 | . "((?:\\d\\d)?\\d\\d)$ws_re$holder_re"; | ||
| 174 | if (/\G$stmt_remainder_re/) | ||
| 175 | { | ||
| 176 | $stmt_re = | ||
| 177 | quotemeta($leading) . "($copyright_re$stmt_remainder_re)"; | ||
| 178 | last; | ||
| 179 | } | ||
| 180 | } | ||
| 181 | if (defined $stmt_re) | ||
| 182 | { | ||
| 183 | /$stmt_re/ or die; # Should never die. | ||
| 184 | my $stmt = $1; | ||
| 185 | my $final_year_orig = $2; | ||
| 186 | |||
| 187 | # Handle two-digit year numbers like "98" and "99". | ||
| 188 | my $final_year = $final_year_orig; | ||
| 189 | $final_year <= 99 | ||
| 190 | and $final_year += 1900; | ||
| 191 | |||
| 192 | if ($final_year != $this_year) | ||
| 193 | { | ||
| 194 | # Update the year. | ||
| 195 | $stmt =~ s/\b$final_year_orig\b/$final_year, $this_year/; | ||
| 196 | } | ||
| 197 | if ($final_year != $this_year || $ENV{'UPDATE_COPYRIGHT_FORCE'}) | ||
| 198 | { | ||
| 199 | # Normalize all whitespace including newline-prefix sequences. | ||
| 200 | $stmt =~ s/$ws_re/ /g; | ||
| 201 | |||
| 202 | # Put spaces after commas. | ||
| 203 | $stmt =~ s/, ?/, /g; | ||
| 204 | |||
| 205 | # Convert 2-digit to 4-digit years. | ||
| 206 | $stmt =~ s/(\b\d\d\b)/19$1/g; | ||
| 207 | |||
| 208 | # Make the use of intervals consistent. | ||
| 209 | if (!$ENV{UPDATE_COPYRIGHT_USE_INTERVALS}) | ||
| 210 | { | ||
| 211 | $stmt =~ s/(\d{4})-(\d{4})/join(', ', $1..$2)/eg; | ||
| 212 | } | ||
| 213 | else | ||
| 214 | { | ||
| 215 | $stmt =~ | ||
| 216 | s/ | ||
| 217 | (\d{4}) | ||
| 218 | (?: | ||
| 219 | (,\ |-) | ||
| 220 | ((??{ | ||
| 221 | if ($2 eq '-') { '\d{4}'; } | ||
| 222 | elsif (!$3) { $1 + 1; } | ||
| 223 | else { $3 + 1; } | ||
| 224 | })) | ||
| 225 | )+ | ||
| 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/; | ||
| 231 | } | ||
| 232 | |||
| 233 | # Format within margin. | ||
| 234 | my $stmt_wrapped; | ||
| 235 | my $text_margin = $margin - length($prefix); | ||
| 236 | if ($prefix =~ /^(\t+)/) | ||
| 237 | { | ||
| 238 | $text_margin -= length($1) * ($tab_width - 1); | ||
| 239 | } | ||
| 240 | while (length $stmt) | ||
| 241 | { | ||
| 242 | if (($stmt =~ s/^(.{1,$text_margin})(?: |$)//) | ||
| 243 | || ($stmt =~ s/^([\S]+)(?: |$)//)) | ||
| 244 | { | ||
| 245 | my $line = $1; | ||
| 246 | $stmt_wrapped .= $stmt_wrapped ? "$eol$prefix" : $leading; | ||
| 247 | $stmt_wrapped .= $line; | ||
| 248 | } | ||
| 249 | else | ||
| 250 | { | ||
| 251 | # Should be unreachable, but we don't want an infinite | ||
| 252 | # loop if it can be reached. | ||
| 253 | die; | ||
| 254 | } | ||
| 255 | } | ||
| 256 | |||
| 257 | # Replace the old copyright statement. | ||
| 258 | s/$stmt_re/$stmt_wrapped/; | ||
| 259 | } | ||
| 260 | } | ||
| 261 | else | ||
| 262 | { | ||
| 263 | print STDERR "$ARGV: warning: copyright statement not found\n"; | ||
| 264 | } | ||
| 265 | |||
| 266 | # Local variables: | ||
| 267 | # mode: perl | ||
| 268 | # indent-tabs-mode: nil | ||
| 269 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
| 270 | # time-stamp-start: "my $VERSION = '" | ||
| 271 | # time-stamp-format: "%:y-%02m-%02d.%02H:%02M" | ||
| 272 | # time-stamp-time-zone: "UTC" | ||
| 273 | # time-stamp-end: "'; # UTC" | ||
| 274 | # End: | ||
diff --git a/lib/gnulib.mk b/lib/gnulib.mk index 16a4ed8700a..9748ce115dc 100644 --- a/lib/gnulib.mk +++ b/lib/gnulib.mk | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | # the same distribution terms as the rest of that program. | 21 | # the same distribution terms as the rest of that program. |
| 22 | # | 22 | # |
| 23 | # Generated by gnulib-tool. | 23 | # Generated by gnulib-tool. |
| 24 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=close --avoid=dup --avoid=fchdir --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt byteswap c-ctype c-strcase careadlinkat close-stream count-one-bits count-trailing-zeros crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat sig2str socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timer-time timespec-add timespec-sub unsetenv utimens warnings | 24 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=close --avoid=dup --avoid=fchdir --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt byteswap c-ctype c-strcase careadlinkat close-stream count-one-bits count-trailing-zeros crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat sig2str socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timer-time timespec-add timespec-sub unsetenv update-copyright utimens warnings |
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | MOSTLYCLEANFILES += core *.stackdump | 27 | MOSTLYCLEANFILES += core *.stackdump |
| @@ -1802,6 +1802,13 @@ EXTRA_libgnu_a_SOURCES += unsetenv.c | |||
| 1802 | 1802 | ||
| 1803 | ## end gnulib module unsetenv | 1803 | ## end gnulib module unsetenv |
| 1804 | 1804 | ||
| 1805 | ## begin gnulib module update-copyright | ||
| 1806 | |||
| 1807 | |||
| 1808 | EXTRA_DIST += $(top_srcdir)/build-aux/update-copyright | ||
| 1809 | |||
| 1810 | ## end gnulib module update-copyright | ||
| 1811 | |||
| 1805 | ## begin gnulib module utimens | 1812 | ## begin gnulib module utimens |
| 1806 | 1813 | ||
| 1807 | libgnu_a_SOURCES += utimens.c | 1814 | libgnu_a_SOURCES += utimens.c |
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index 3a04c84ac90..cdb671c3d14 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 | |||
| @@ -150,6 +150,7 @@ AC_DEFUN([gl_EARLY], | |||
| 150 | # Code from module u64: | 150 | # Code from module u64: |
| 151 | # Code from module unistd: | 151 | # Code from module unistd: |
| 152 | # Code from module unsetenv: | 152 | # Code from module unsetenv: |
| 153 | # Code from module update-copyright: | ||
| 153 | # Code from module utimens: | 154 | # Code from module utimens: |
| 154 | # Code from module verify: | 155 | # Code from module verify: |
| 155 | # Code from module warnings: | 156 | # Code from module warnings: |
| @@ -791,6 +792,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 791 | build-aux/snippet/arg-nonnull.h | 792 | build-aux/snippet/arg-nonnull.h |
| 792 | build-aux/snippet/c++defs.h | 793 | build-aux/snippet/c++defs.h |
| 793 | build-aux/snippet/warn-on-use.h | 794 | build-aux/snippet/warn-on-use.h |
| 795 | build-aux/update-copyright | ||
| 794 | lib/acl-errno-valid.c | 796 | lib/acl-errno-valid.c |
| 795 | lib/acl-internal.h | 797 | lib/acl-internal.h |
| 796 | lib/acl.h | 798 | lib/acl.h |
| @@ -344,7 +344,8 @@ echo "Making links to \`leim' and its subdirectories" | |||
| 344 | echo "Making links to \`build-aux'" | 344 | echo "Making links to \`build-aux'" |
| 345 | (cd build-aux | 345 | (cd build-aux |
| 346 | ln compile config.guess config.sub depcomp msys-to-w32 ../${tempdir}/build-aux | 346 | ln compile config.guess config.sub depcomp msys-to-w32 ../${tempdir}/build-aux |
| 347 | ln install-sh missing move-if-change update-subdirs ../${tempdir}/build-aux | 347 | ln install-sh missing move-if-change ../${tempdir}/build-aux |
| 348 | ln update-copyright update-subdirs ../${tempdir}/build-aux | ||
| 348 | ln dir_top make-info-dir ../${tempdir}/build-aux) | 349 | ln dir_top make-info-dir ../${tempdir}/build-aux) |
| 349 | 350 | ||
| 350 | echo "Making links to \`build-aux/snippet'" | 351 | echo "Making links to \`build-aux/snippet'" |
diff --git a/msdos/autogen/Makefile.in b/msdos/autogen/Makefile.in index 11bcb600f7e..99adcab17ed 100644 --- a/msdos/autogen/Makefile.in +++ b/msdos/autogen/Makefile.in | |||
| @@ -1,9 +1,7 @@ | |||
| 1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | 1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. |
| 2 | # @configure_input@ | 2 | # @configure_input@ |
| 3 | 3 | ||
| 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | 4 | # Copyright (C) 1994-2009, 2013 Free Software Foundation, Inc. |
| 5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
| 6 | # Inc. | ||
| 7 | # This Makefile.in is free software; the Free Software Foundation | 5 | # This Makefile.in is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy and/or distribute it, | 6 | # gives unlimited permission to copy and/or distribute it, |
| 9 | # with or without modifications, as long as this notice is preserved. | 7 | # with or without modifications, as long as this notice is preserved. |