1 |
>>>>> On Mon, 21 Jun 2021, Joshua Kinard wrote: |
2 |
|
3 |
>>> I am inclined to go with "Copyright 1999-2021 Gentoo Authors" across |
4 |
>>> the board, |
5 |
>> |
6 |
>> Why would you move the starting year back in time? Please don't. |
7 |
>> |
8 |
>>> but given that copyright is always a touchy subject, figured I'd ask. |
9 |
|
10 |
> Again, this is why I ask instead of what waltzing off and doing. |
11 |
|
12 |
> Odds are really likely that many of those profile files were just copied |
13 |
> from another one elsewhere in the tree. The starting year is all over the |
14 |
> place, and really, we did not have cascading profiles in 1999, so any of the |
15 |
> files that say "1999" as the start year likely have the wrong year in the |
16 |
> first place. More reasonably, I'd want to hunt down the actual creation |
17 |
> year of each file and then set the start year to the year that file first |
18 |
> appeared in CVS. Though, that'd be a tad on the pedantic side, not to |
19 |
> mention take a lot of time to trace each file individually. |
20 |
|
21 |
> :: waits for someone to drop some magic git-fu that does this in one line :: |
22 |
|
23 |
For a single file, something like this should do the job (assuming that |
24 |
you've grafted the historical repo): |
25 |
|
26 |
$ TZ=UTC git log --find-renames --find-copies --follow \ |
27 |
--pretty="format:%ad" --date="format-local:%Y" ${filename} | tail -n1 |
28 |
|
29 |
Ulrich |