From patchwork Mon Feb 24 08:25:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 38283 Received: (qmail 42466 invoked by alias); 24 Feb 2020 08:25:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 42458 invoked by uid 89); 24 Feb 2020 08:25:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=luis, sk:brobeck, exclude, brobeckeradacorecom X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Feb 2020 08:25:50 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 5CE151175DD; Mon, 24 Feb 2020 03:25:49 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nw2+WdhigHeN; Mon, 24 Feb 2020 03:25:49 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id EAF52116981; Mon, 24 Feb 2020 03:25:48 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 6B61782121; Mon, 24 Feb 2020 12:25:44 +0400 (+04) Date: Mon, 24 Feb 2020 12:25:44 +0400 From: Joel Brobecker To: Simon Marchi Cc: Luis Machado , Simon Marchi , gdb-patches@sourceware.org Subject: [RFA] gdb/copyright.py: Add generated files in gnulib/ to exclude list (was: "Re: [PATCH] gnulib: import count-one-bits module and use it") Message-ID: <20200224082544.GA16383@adacore.com> References: <20200211170902.4330-1-simon.marchi@efficios.com> <24d2751d-3458-5429-a5d0-c5a16055c4db@linaro.org> <8d2cc815-8fdf-5e6f-1f29-994a3dac8e07@simark.ca> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8d2cc815-8fdf-5e6f-1f29-994a3dac8e07@simark.ca> User-Agent: Mutt/1.9.4 (2018-02-28) Hi Simon, On Fri, Feb 14, 2020 at 02:43:08PM -0500, Simon Marchi wrote: > On 2020-02-14 5:35 a.m., Luis Machado wrote: > >> --- a/gnulib/Makefile.in > >> +++ b/gnulib/Makefile.in > >> @@ -1,7 +1,7 @@ > >>   # Makefile.in generated by automake 1.15.1 from Makefile.am. > >>   # @configure_input@ > >>   -# Copyright (C) 1994-2020 Free Software Foundation, Inc. > >> +# Copyright (C) 1994-2017 Free Software Foundation, Inc. > > > > The year interval was reverted. Is that a problem? > > Not really. The year was changed to 2020 by commit: > > Update copyright year range in all GDB files. > b811d2c2920ddcb1adcd438da38e90912b31f45f > > which updates the copyright years in all of GDB source files at the > beginning of year. The commit shouldn't have touched this file > though, as it's a generated file. Indeed. Here is a patch which adjusts the script doing the update to exclude those files. gdb/ChangeLog: * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and 'gnulib/Makefile.in' to the list. OK to push to master? Thanks! From 182ab462fc7dd7f6641167bcc9835c8af50519ec Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 24 Feb 2020 12:20:08 +0400 Subject: [PATCH] gdb/copyright.py: Add generated files in gnulib/ to exclude list This will prevent this script from updating the copyright year range for those files. Note that aclocal.m4 and configure are already in the EXCLUDE_ALL_LIST, so they don't need to be added to the EXCLUDE_LIST. gdb/ChangeLog: * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and 'gnulib/Makefile.in' to the list. --- gdb/copyright.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/copyright.py b/gdb/copyright.py index baa799de927..6fc7e1f461a 100644 --- a/gdb/copyright.py +++ b/gdb/copyright.py @@ -190,7 +190,9 @@ def main (): EXCLUDE_LIST = ( 'gdb/nat/glibc_thread_db.h', 'gdb/CONTRIBUTE', - 'gnulib/import' + 'gnulib/import', + 'gnulib/config.in', + 'gnulib/Makefile.in', ) # Files which should not be modified, either because they are -- 2.17.1