Gnus development mailing list
 help / color / mirror / Atom feed
* Time to update the copyrights?
@ 2001-12-31 23:12 Lars Magne Ingebrigtsen
  2001-12-31 23:18 ` Russ Allbery
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2001-12-31 23:12 UTC (permalink / raw)


Should I just add a ", 2002" to all the Gnus files, or should we do
that individually to each file as we edit them during the year?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Time to update the copyrights?
  2001-12-31 23:12 Time to update the copyrights? Lars Magne Ingebrigtsen
@ 2001-12-31 23:18 ` Russ Allbery
  2001-12-31 23:26   ` Matt Armstrong
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Russ Allbery @ 2001-12-31 23:18 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Should I just add a ", 2002" to all the Gnus files, or should we do
> that individually to each file as we edit them during the year?

The GNU coding guidelines say to only update them when you make a change.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Time to update the copyrights?
  2001-12-31 23:18 ` Russ Allbery
@ 2001-12-31 23:26   ` Matt Armstrong
  2002-01-01  0:07     ` Lars Magne Ingebrigtsen
  2001-12-31 23:26   ` Lars Magne Ingebrigtsen
  2002-01-02 14:49   ` Randal L. Schwartz
  2 siblings, 1 reply; 8+ messages in thread
From: Matt Armstrong @ 2001-12-31 23:26 UTC (permalink / raw)


Russ Allbery <rra@stanford.edu> writes:

> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>
>> Should I just add a ", 2002" to all the Gnus files, or should we do
>> that individually to each file as we edit them during the year?
>
> The GNU coding guidelines say to only update them when you make a
> change.

Whats more, there is copyright.el already there to do it for you (at
least in FSF Emacs).

-- 
matt



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Time to update the copyrights?
  2001-12-31 23:18 ` Russ Allbery
  2001-12-31 23:26   ` Matt Armstrong
@ 2001-12-31 23:26   ` Lars Magne Ingebrigtsen
  2002-01-02 14:49   ` Randal L. Schwartz
  2 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2001-12-31 23:26 UTC (permalink / raw)


Russ Allbery <rra@stanford.edu> writes:

> The GNU coding guidelines say to only update them when you make a change.

Okidoke.  Has somebody written a maintain-copyright-date package that
goes through a directory and sees which files needs to have their
copyright updated?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Time to update the copyrights?
  2001-12-31 23:26   ` Matt Armstrong
@ 2002-01-01  0:07     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-01  0:07 UTC (permalink / raw)
  Cc: Daniel Pfeiffer

"Matt Armstrong" <matt+dated+1010273174.cccad3@lickey.com> writes:

> Whats more, there is copyright.el already there to do it for you (at
> least in FSF Emacs).

Cool.

The following patch adds a command to update an entire directory,
which I think would be useful.

--- copyright.el.~1~	Mon Jan  8 16:59:40 2001
+++ copyright.el	Tue Jan  1 01:04:48 2002
@@ -145,6 +145,17 @@
   ;; If a write-file-hook returns non-nil, the file is presumed to be written.
   nil)
 
+;;;###autoload
+(defun copyright-update-directory (directory)
+  "Update the copyright statements in DIRECTORY.
+Only .el files will be updated."
+  (interactive "DUpdate copyrights in: ")
+  (let ((current-year (format-time-string "%Y")))
+  (dolist (file (directory-files directory t "\\.el$"))
+    (when (string= current-year
+		   (format-time-string "%Y" (nth 5 (file-attributes file))))
+      (find-file file)
+      (copyright-update)))))
 
 ;;;###autoload
 (define-skeleton copyright


-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Time to update the copyrights?
  2001-12-31 23:18 ` Russ Allbery
  2001-12-31 23:26   ` Matt Armstrong
  2001-12-31 23:26   ` Lars Magne Ingebrigtsen
@ 2002-01-02 14:49   ` Randal L. Schwartz
  2002-01-02 15:00     ` Lars Magne Ingebrigtsen
  2 siblings, 1 reply; 8+ messages in thread
From: Randal L. Schwartz @ 2002-01-02 14:49 UTC (permalink / raw)


>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

Russ> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>> Should I just add a ", 2002" to all the Gnus files, or should we do
>> that individually to each file as we edit them during the year?

Russ> The GNU coding guidelines say to only update them when you make a change.

That would also be the only legal way. :) Otherwise, you're getting a
copyright extension on something that isn't substantially different,
and could be used to challenge the copyright authority completely.

IANAL, however.  Although I've paid enough to lawyers over the past
eight years that I think I'm at least an honorary member of the
bar. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Time to update the copyrights?
  2002-01-02 14:49   ` Randal L. Schwartz
@ 2002-01-02 15:00     ` Lars Magne Ingebrigtsen
  2002-01-02 16:09       ` Russ Allbery
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-02 15:00 UTC (permalink / raw)


merlyn@stonehenge.com (Randal L. Schwartz) writes:

> That would also be the only legal way. :) Otherwise, you're getting a
> copyright extension on something that isn't substantially different,
> and could be used to challenge the copyright authority completely.

But does that mean that the copyright should only be updated if the
change is substantial?  If I edit two or three lines, then the
copyright shouldn't be updated?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Time to update the copyrights?
  2002-01-02 15:00     ` Lars Magne Ingebrigtsen
@ 2002-01-02 16:09       ` Russ Allbery
  0 siblings, 0 replies; 8+ messages in thread
From: Russ Allbery @ 2002-01-02 16:09 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> merlyn@stonehenge.com (Randal L. Schwartz) writes:

>> That would also be the only legal way. :) Otherwise, you're getting a
>> copyright extension on something that isn't substantially different,
>> and could be used to challenge the copyright authority completely.

> But does that mean that the copyright should only be updated if the
> change is substantial?  If I edit two or three lines, then the copyright
> shouldn't be updated?

Yup, unfortunately.  That's my understanding.

It's not clear how important it is to be very precise in the copyright
notices, but the GNU coding standards are pretty specific about what years
should and should not go into the list.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-01-02 16:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-31 23:12 Time to update the copyrights? Lars Magne Ingebrigtsen
2001-12-31 23:18 ` Russ Allbery
2001-12-31 23:26   ` Matt Armstrong
2002-01-01  0:07     ` Lars Magne Ingebrigtsen
2001-12-31 23:26   ` Lars Magne Ingebrigtsen
2002-01-02 14:49   ` Randal L. Schwartz
2002-01-02 15:00     ` Lars Magne Ingebrigtsen
2002-01-02 16:09       ` Russ Allbery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).