On Fri, 23 Feb 2024 00:36:43 GMT, Serguei Spitsyn <[email protected]> wrote:
> Looks good. I have a minor concern about the Copyright headers in 547 files.
> What is the ways to make sure they are updated?
Here's the bash script I used:
#!/usr/bin/env bash
for f in `git diff master --name-only`;
do
sed -i \
-e "s/Copyright (c) ([12][0-9][0-9][0-9]), [0-9][0-9][0-9][0-9],
Oracle/Copyright (c) \1, 2024, Oracle/" \
-e "s/Copyright (c) ([12][0-9][0-9][012356789]), Oracle/Copyright (c)
\1, 2024, Oracle/" \
-e "s/Copyright (c) ([12][0-9][013456789]4), Oracle/Copyright (c) \1,
2024, Oracle/" $f;
done
The sed -e options are from Coleen.
It found and updated the copyrights in a small number of files:
test/hotspot/jtreg/vmTestbase/nsk/jvmti/Agent_OnUnload/agentonunload001/agentonunload001.cpp
test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/OnUnload/JvmtiTest/JvmtiTest.cpp
test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/functions/environment/JvmtiTest/JvmtiTest.cpp
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/agent_common/agent_common.cpp
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17970#issuecomment-1960706717