From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5457 invoked by alias); 18 Apr 2012 20:49:15 -0000 Received: (qmail 5176 invoked by uid 22791); 18 Apr 2012 20:49:00 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Apr 2012 20:48:17 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3IKm3VN029543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Apr 2012 16:48:03 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q3IKm2vq019412; Wed, 18 Apr 2012 16:48:02 -0400 Message-ID: <4F8F2881.7010705@redhat.com> Date: Wed, 18 Apr 2012 20:52:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Pedro Alves CC: Joel Brobecker , gdb-patches@sourceware.org Subject: Import gnulib's update-copyright whole module References: <1325665146-31682-1-git-send-email-brobecker@adacore.com> <1325665146-31682-2-git-send-email-brobecker@adacore.com> <4F8EB486.5020308@redhat.com> In-Reply-To: <4F8EB486.5020308@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00609.txt.bz2 On 04/18/2012 01:33 PM, Pedro Alves wrote: > If I pull the "update-copyright" gnulib module in addition, with: > > [pedro@brno][~/gdb/mygit/src/gdb] >> >~/src/gnulib/gnulib/gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib --m4-base=gnulib/m4 --doc-base=doc --tests-base=tests --aux-dir=gnulib/extra --no-libtool --macro-prefix=gl --no-vc-files inttypes memmem update-copyright > then we get it back, but, we get an older 2010 version, thus we end up with a non-empty diff, see below. Okay, I've now checked this in. 2012-04-18 Pedro Alves Reimport the update-copyright module from gnulib (250b80067c1e1d8faa0c42fb572f721975b929c5). * configure: Regenerate. * gnulib/Makefile.am: Update. * gnulib/Makefile.in: Regenerate. * gnulib/extra/update-copyright: Update. * gnulib/m4/gnulib-cache.m4: Update. * gnulib/m4/gnulib-comp.m4: Update. --- gdb/configure | 2 + gdb/gnulib/Makefile.am | 9 +++++- gdb/gnulib/Makefile.in | 11 ++++--- gdb/gnulib/extra/update-copyright | 58 ++++++++++++++++--------------------- gdb/gnulib/m4/gnulib-cache.m4 | 3 +- gdb/gnulib/m4/gnulib-comp.m4 | 3 ++ 6 files changed, 46 insertions(+), 40 deletions(-) diff --git a/gdb/configure b/gdb/configure index 60652d6..55b0ce2 100755 --- a/gdb/configure +++ b/gdb/configure @@ -4319,6 +4319,7 @@ fi # Code from module stddef: # Code from module stdint: # Code from module string: + # Code from module update-copyright: # Code from module warn-on-use: # Code from module wchar: @@ -8372,6 +8373,7 @@ _ACEOF + # Code from module update-copyright: # Code from module warn-on-use: # Code from module wchar: diff --git a/gdb/gnulib/Makefile.am b/gdb/gnulib/Makefile.am index 1296c01..e14ea74 100644 --- a/gdb/gnulib/Makefile.am +++ b/gdb/gnulib/Makefile.am @@ -9,7 +9,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib --m4-base=gnulib/m4 --doc-base=doc --tests-base=tests --aux-dir=gnulib/extra --no-libtool --macro-prefix=gl --no-vc-files inttypes memmem +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib --m4-base=gnulib/m4 --doc-base=doc --tests-base=tests --aux-dir=gnulib/extra --no-libtool --macro-prefix=gl --no-vc-files inttypes memmem update-copyright AUTOMAKE_OPTIONS = 1.5 gnits @@ -299,6 +299,13 @@ EXTRA_DIST += string.in.h ## end gnulib module string +## begin gnulib module update-copyright + + +EXTRA_DIST += $(top_srcdir)/gnulib/extra/update-copyright + +## end gnulib module update-copyright + ## begin gnulib module warn-on-use BUILT_SOURCES += warn-on-use.h diff --git a/gdb/gnulib/Makefile.in b/gdb/gnulib/Makefile.in index 4e1b1d8..4024b0d 100644 --- a/gdb/gnulib/Makefile.in +++ b/gdb/gnulib/Makefile.in @@ -1,8 +1,9 @@ # Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, -# 2004, 2005, 2006, 2007, 2008, 2009, 2011 Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -23,7 +24,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib --m4-base=gnulib/m4 --doc-base=doc --tests-base=tests --aux-dir=gnulib/extra --no-libtool --macro-prefix=gl --no-vc-files inttypes memmem +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib --m4-base=gnulib/m4 --doc-base=doc --tests-base=tests --aux-dir=gnulib/extra --no-libtool --macro-prefix=gl --no-vc-files inttypes memmem update-copyright @@ -522,8 +523,8 @@ EXTRA_DIST = m4/gnulib-cache.m4 \ $(top_srcdir)/gnulib/extra/arg-nonnull.h \ $(top_srcdir)/gnulib/extra/c++defs.h inttypes.in.h memchr.c \ memchr.valgrind memmem.c str-two-way.h stddef.in.h stdint.in.h \ - string.in.h $(top_srcdir)/gnulib/extra/warn-on-use.h \ - wchar.in.h + string.in.h $(top_srcdir)/gnulib/extra/update-copyright \ + $(top_srcdir)/gnulib/extra/warn-on-use.h wchar.in.h # The BUILT_SOURCES created by this Makefile snippet are not used via #include # statements but through direct file reference. Therefore this snippet must be diff --git a/gdb/gnulib/extra/update-copyright b/gdb/gnulib/extra/update-copyright index 082b749..28ff441 100755 --- a/gdb/gnulib/extra/update-copyright +++ b/gdb/gnulib/extra/update-copyright @@ -3,9 +3,9 @@ eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}' if 0; # Update an FSF copyright year list to include the current year. -my $VERSION = '2012-02-05.21:39'; # UTC +my $VERSION = '2009-12-28.11:09'; # UTC -# Copyright (C) 2009-2012 Free Software Foundation, Inc. +# Copyright (C) 2009-2010 Free Software Foundation, Inc. # # 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 @@ -22,16 +22,12 @@ my $VERSION = '2012-02-05.21:39'; # UTC # Written by Jim Meyering and Joel E. Denny -# 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 Software Foundation, Inc." but may be changed to -# any other name by using the "UPDATE_COPYRIGHT_HOLDER" environment -# variable. +# The arguments to this script should be names of files that contain FSF +# copyright statements to be updated. For example, you might wish to +# use the update-copyright target rule in maint.mk from gnulib's +# maintainer-makefile module. # -# For example, you might wish to use the update-copyright target rule -# in maint.mk from gnulib's maintainer-makefile module. -# -# Iff a copyright statement is recognized in a file and the final +# Iff an FSF 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: # @@ -40,10 +36,10 @@ my $VERSION = '2012-02-05.21:39'; # UTC # 3. Expand copyright year intervals. (See "Environment variables" # below.) # -# A warning is printed for every file for which no copyright +# A warning is printed for every file for which no FSF copyright # statement is recognized. # -# Each file's copyright statement must be formatted correctly in +# Each file's FSF 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 @@ -63,17 +59,23 @@ my $VERSION = '2012-02-05.21:39'; # UTC # ## Copyright (C) 1990-2005, 2007-2009 Free Software # # Foundation, Inc. # -# However, any correctly formatted copyright statement following -# a non-matching copyright statements would be recognized. +# The following copyright statement is not recognized because the +# copyright holder is not the FSF: +# +# Copyright (C) 1990-2005, 2007-2009 Acme, Inc. # -# The exact conditions that a file's copyright statement must meet +# However, any correctly formatted FSF copyright statement following +# either of the previous two copyright statements would be recognized. +# +# The exact conditions that a file's FSF copyright statement must meet # to be recognized are: # -# 1. It is the first copyright statement that meets all of the -# following conditions. Subsequent copyright statements are +# 1. It is the first FSF copyright statement that meets all of the +# following conditions. Subsequent FSF copyright statements are # ignored. # 2. Its format is "Copyright (C)", then a list of copyright years, -# and then the name of the copyright holder. +# and then the name of the copyright holder, which is "Free +# Software Foundation, Inc.". # 3. The "(C)" takes one of the following forms or is omitted # entirely: # @@ -82,9 +84,9 @@ my $VERSION = '2012-02-05.21:39'; # 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 -- including white space. +# 5 characters. # 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 @@ -110,23 +112,17 @@ my $VERSION = '2012-02-05.21:39'; # UTC # interval (such as 1990-2008). If unset or set to 0, all existing # copyright year intervals in a reformatted FSF copyright statement # are expanded instead. -# If UPDATE_COPYRIGHT_USE_INTERVALS=2, convert a sequence with gaps -# to the minimal containing range. For example, convert -# 2000, 2004-2007, 2009 to 2000-2009. # 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. -# 5. Set UPDATE_COPYRIGHT_HOLDER if the copyright holder is other -# than "Free Software Foundation, Inc.". use strict; use warnings; my $copyright_re = 'Copyright'; my $circle_c_re = '(?:\([cC]\)|@copyright{}|©)'; -my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; -$holder ||= 'Free Software Foundation, Inc.'; +my $holder = 'Free Software Foundation, Inc.'; my $prefix_max = 5; my $margin = $ENV{UPDATE_COPYRIGHT_MAX_LINE_LENGTH}; !$margin || $margin !~ m/^\d+$/ @@ -224,10 +220,6 @@ if (defined $stmt_re) })) )+ /$1-$3/gx; - - # When it's 2, emit a single range encompassing all year numbers. - $ENV{UPDATE_COPYRIGHT_USE_INTERVALS} == 2 - and $stmt =~ s/\b(\d{4})\b.*\b(\d{4})\b/$1-$2/; } # Format within margin. @@ -260,7 +252,7 @@ if (defined $stmt_re) } else { - print STDERR "$ARGV: warning: copyright statement not found\n"; + print STDERR "$ARGV: warning: FSF copyright statement not found\n"; } # Local variables: diff --git a/gdb/gnulib/m4/gnulib-cache.m4 b/gdb/gnulib/m4/gnulib-cache.m4 index de1c994..e557bb7 100644 --- a/gdb/gnulib/m4/gnulib-cache.m4 +++ b/gdb/gnulib/m4/gnulib-cache.m4 @@ -15,13 +15,14 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib --m4-base=gnulib/m4 --doc-base=doc --tests-base=tests --aux-dir=gnulib/extra --no-libtool --macro-prefix=gl --no-vc-files inttypes memmem +# gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib --m4-base=gnulib/m4 --doc-base=doc --tests-base=tests --aux-dir=gnulib/extra --no-libtool --macro-prefix=gl --no-vc-files inttypes memmem update-copyright # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([]) gl_MODULES([ inttypes memmem + update-copyright ]) gl_AVOID([]) gl_SOURCE_BASE([gnulib]) diff --git a/gdb/gnulib/m4/gnulib-comp.m4 b/gdb/gnulib/m4/gnulib-comp.m4 index abde4aa..582e35d 100644 --- a/gdb/gnulib/m4/gnulib-comp.m4 +++ b/gdb/gnulib/m4/gnulib-comp.m4 @@ -38,6 +38,7 @@ AC_DEFUN([gl_EARLY], # Code from module stddef: # Code from module stdint: # Code from module string: + # Code from module update-copyright: # Code from module warn-on-use: # Code from module wchar: ]) @@ -80,6 +81,7 @@ AC_DEFUN([gl_INIT], gl_STDINT_H # Code from module string: gl_HEADER_STRING_H + # Code from module update-copyright: # Code from module warn-on-use: # Code from module wchar: gl_WCHAR_H @@ -226,6 +228,7 @@ AC_DEFUN([gltests_LIBSOURCES], [ AC_DEFUN([gl_FILE_LIST], [ build-aux/arg-nonnull.h build-aux/c++defs.h + build-aux/update-copyright build-aux/warn-on-use.h lib/dummy.c lib/inttypes.in.h