From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23993 invoked by alias); 4 Jan 2012 08:20:18 -0000 Received: (qmail 23946 invoked by uid 22791); 4 Jan 2012 08:20:14 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Jan 2012 08:20:01 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 387C12BABB4 for ; Wed, 4 Jan 2012 03:20:00 -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 IRkQiAE5DCbA for ; Wed, 4 Jan 2012 03:20:00 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id E9AA42BABAF for ; Wed, 4 Jan 2012 03:19:57 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 1AE4F145615; Wed, 4 Jan 2012 12:19:12 +0400 (RET) From: Joel Brobecker To: gdb-patches@sourceware.org Subject: New procedure for updating copyright years... Date: Wed, 04 Jan 2012 08:20:00 -0000 Message-Id: <1325665146-31682-1-git-send-email-brobecker@adacore.com> 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-01/txt/msg00119.txt.bz2 Hello, this patch series enhanced our procedures for updating the copyright years by switching away from an emacs lisp program to a script that's part of gnulib. There are several parts to this series: 1. Importing the update-copyright script from gnulib 2. Write a new script that uses it. Since I had never used it before, I spent a lot of time double-checking the output. gnulib's update-copyright script is more general than the emacs-based approach, and it allows us to lift the limitation about several categories of files that previously had to be updated by hand. It is also worth mentioning that update-copyright gets the job done in 2 seconds where the emacs would take, IIRC, a good 10-15 minutes. update-copyright, however, is a little more sensitive to incorrect formatting of the copyright notice. As a result, it failed to find the copyright notice in several files. But the good news is that it does generate a warning when not finding the copyright notice in a file. So I enhance our new script to catch them and process them. For each file that that update-copyright cannot update, I perform a crude sanity check, and let the warning through if there is any chance that the file might have, in fact, a copyright notice. The script does not let through warning about files where the word "Copyright" does not appear within the first 50 lines (arbitrary but seemed like a good number), because there are a LOT (and I mean A LOT) of those, and so these warnings would drown the rest. We should probably fix those, but this is not the job of the guy simply updating the existing copyright notices. Finally, I should say that the new script was written in Python, compatible with Python 2.6 and 2.7 at least. This is simply because it was so much harder for me to write the same sanity checks in bourne shell. 3. The last patch updates our documentation.