Re: [PATCH] gdbserver: Add .dir-locals.el file

Pedro Alves
2020-03-02T14:05:12Z

On 3/2/20 12:02 PM, Andrew Burgess wrote:

>>> +;; Copyright (C) 2012-2020 Free Software Foundation, Inc.
>>
>> ... and I think they year needs to be just '2020'.
>
> As per this rule:
>
> https://sourceware.org/gdb/wiki/ContributionChecklist#Copyright_Header
>
> When copying a file the start date of the original file should be
> maintained I think.

Yes, otherwise we could put just "2020" everywhere using this:

$ cp org.c new.c
# I have a new file, so let me update copyright to 2020:
$ sed s/20*-2020/2020/g -i new.c
# Rename the new file back to the old name:
$ mv new.c org.c

Copyright covers the code, the file's content, not the file name.

Pedro Alves