From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: How to update the copyright notice? Date: Tue, 24 Dec 2013 22:30:56 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1387895495 8548 80.91.229.3 (24 Dec 2013 14:31:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Dec 2013 14:31:35 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 24 15:31:43 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VvT1K-0005Qh-LP for ged-emacs-devel@m.gmane.org; Tue, 24 Dec 2013 15:31:42 +0100 Original-Received: from localhost ([::1]:38793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvT1K-0002Aq-68 for ged-emacs-devel@m.gmane.org; Tue, 24 Dec 2013 09:31:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvT0d-0000wk-22 for emacs-devel@gnu.org; Tue, 24 Dec 2013 09:31:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VvT0b-0007H5-JZ for emacs-devel@gnu.org; Tue, 24 Dec 2013 09:30:58 -0500 Original-Received: from mail-ie0-x22d.google.com ([2607:f8b0:4001:c03::22d]:61930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvT0b-0007Gq-Dy for emacs-devel@gnu.org; Tue, 24 Dec 2013 09:30:57 -0500 Original-Received: by mail-ie0-f173.google.com with SMTP id to1so7134658ieb.4 for ; Tue, 24 Dec 2013 06:30:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=daPJuTnafP+C3AqmOqqYTnwNgwv3TTuWV1R//D7S3eg=; b=pHn2R+ii+a7DuMSqodFG6Ctm/Cw/kAAkyP6LSJCtCaPg0VoazBdPbxUaQ1s3NMDfMI 8WRdsWmQfLYmZAkYebQL5BdFgXXp9RHcEJA/7F1eCSs/qG99TsG7Rz3NCFeDtmTkNPTq p8vblCdCT8Hk7aZGr/AFiNVCVL2ypCNNCX8h4sO0SWshOSkbQAk7zIh/h6SJH5CIeDdV wF1tG8k2aNnzYLloIZJ0IDfT6gIuqECCv+niv7Ol0puvvqo29wYXjiXfBdcPOu6FVFac FozyMq+Qq52mKFii0xN9lsRJOGunj1HsJTVEbuy4flFHA4vtBRDZP2HH7BjkXGc3BWvr +44A== X-Received: by 10.43.127.4 with SMTP id gy4mr1608316icc.61.1387895456635; Tue, 24 Dec 2013 06:30:56 -0800 (PST) Original-Received: by 10.42.119.18 with HTTP; Tue, 24 Dec 2013 06:30:56 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:166828 Archived-At: The year 2014 is coming, and I'd love to help update the copyright notices in the repo, like the one committed by Paul[fn:1]. First, I found the `set-copyright' function in admin/admin.el, which can update the copyright notices for these files: configure.ac etc/refcards/emacsver.tex etc/refcards/ru-refcard.tex lib-src/rcs2log msdos/sed2v2.inp nt/config.nt The copyright strings for these files are simply "Copyright (C) 2013 Free Software Foundation, Inc." and they do not contain year ranges (not sure whether they are the only ones that don't contain a year range). `set-copyright' works well on these files, but I'd like to perform this action "globally". >From admin/notes/years, I knew that maintaining copyright years is now very simple: every time a new year rolls around, add that year to every FSF (and AIST) copyright notice. Do we have a such script/function that can do this job? If not, IMHO we need a function that can change all "2013"s to "2014", recursively, except for: a) All ChangeLog files; b) New files created this year, since we need to change the single year to a year range c) The years processed by `set-copyright', since they don't contain year ranges; d) Something like http://lists.gnu.org/archive/html/.*/\([[:digit:]]\)-[[:digit:]]/.*html often appears in the comment or main body of a file Then manually check if there are any "2013" being replaced improperly (see Makefile.in in the root of repo for example), fix them, and commit. Any ideas? Footnotes: [fn:1] http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=6aef6b19675b70f1786b16782c277b375257e640 -- http://www.gnu.org/software/emacs/