RFR: 1704: Add or update copyright header in some files

Zhao Song zsong at openjdk.org
Fri Dec 2 00:30:22 UTC 2022


On Fri, 2 Dec 2022 00:23:46 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> For example, here are some one-liners I use to mass-update copyright years:
> 
> ```
> gt diff ${HASH}.. --name-only > ALLNAMES.txt
> 
> sed -i  -e 's/Copyright (c) ([0-9]*), Oracle and/or its affiliates. All rights reserved./Copyright (c) \1, 2022, Oracle and/or its affiliates. All rights reserved./g' $(cat ALLNAMES.txt )
> 
> sed -i -e 's/Copyright (c) ([0-9]*), [0-9]*, Oracle and/or its affiliates. All rights reserved./Copyright (c) \1, 2022, Oracle and/or its affiliates. All rights reserved./g' $(cat ALLNAMES.txt )
> ```

Oh, thanks! Maybe I could run this script to check whether I made mistakes.

-------------

PR: https://git.openjdk.org/skara/pull/1431


More information about the skara-dev mailing list