From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Adding missing copyright years Date: Wed, 18 May 2005 18:53:14 +0100 Message-ID: <3loeb8775h.fsf@xpc14.ast.cam.ac.uk> References: <85mzraqm9k.fsf@lola.goethe.zz> <4ekc7rkm0.fsf@xpc14.ast.cam.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116446553 24521 80.91.229.2 (18 May 2005 20:02:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 May 2005 20:02:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 18 22:02:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYUin-0005Yw-PC for ged-emacs-devel@m.gmane.org; Wed, 18 May 2005 22:00:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYUYW-0005r7-Gj for ged-emacs-devel@m.gmane.org; Wed, 18 May 2005 15:50:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DYSm8-00059w-2Y for emacs-devel@gnu.org; Wed, 18 May 2005 13:56:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DYSm6-00059M-QB for emacs-devel@gnu.org; Wed, 18 May 2005 13:56:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYSm6-00058E-J6 for emacs-devel@gnu.org; Wed, 18 May 2005 13:56:06 -0400 Original-Received: from [131.111.8.137] (helo=ppsw-7.csi.cam.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DYSrX-0006QX-02 for emacs-devel@gnu.org; Wed, 18 May 2005 14:01:43 -0400 X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from cass41.ast.cam.ac.uk ([131.111.69.186]:50531) by ppsw-7.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtp id 1DYSjN-00033C-Oc (Exim 4.51) (return-path ); Wed, 18 May 2005 18:53:17 +0100 Original-Received: from xserv1.ast.cam.ac.uk (xserv1.ast.cam.ac.uk [131.111.69.235]) by cass41.ast.cam.ac.uk (8.12.10+Sun/8.12.10) with ESMTP id j4IHrFoL015141; Wed, 18 May 2005 18:53:15 +0100 (BST) Original-Received: from xalph3.ast.cam.ac.uk (xpc14.ast.cam.ac.uk [131.111.69.34]) by xserv1.ast.cam.ac.uk (Postfix) with ESMTP id 02E271728D7; Wed, 18 May 2005 18:53:14 +0100 (BST) Original-To: Juanma Barranquero X-Spook: Tora Bora data haven Reno arms Kurdish Osama Bin Laden X-Ran: n1v.~A9;9w$-k>,(G8]TBz2J=9F^dMWS^Oa^oyx*r|7^;BeaZD7{@HG\am;F;ryxB\X3VQ X-Hue: white X-Attribution: GM Mail-Followup-To: Juanma Barranquero , emacs-devel@gnu.org In-Reply-To: (Juanma Barranquero's message of "Wed, 18 May 2005 10:02:42 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37288 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37288 I'm trying to update the copyright in lisp/calendar, and am finding it really tough to do a good job. FWIW, my algorithm is something like this: 1. Make a CVS diff between 00:00 on January first of two consecutive years. 2. Work out the "number of lines" changed, bearing in mind that renaming "foo" to "bar" in lots of places counts for only one line, etc, etc. 3. If the number of lines changed is less than 10-15, carry the number forward to the next year, and add it to any changes made that year. If the running total becomes greater than 10-15 in any year, add a copyright for that year, and reset the running total to zero. 4. Modulate the above with the fact that when Emacs was not available via CVS, only years in which releases were made are eligible to be in copyright headers. So counts of changed lines should be accumulated until release years. 5. Keep track of code deletions. If, at any point, enough code is deleted so that the only remaining changes from some past year are no longer significant, then that year should not appear in copyright headers from that point onwards. This is a real PITA. Bloomin' lawyers. Grrr...