diff options
author | Dmitry V. Levin <ldv@strace.io> | 2023-04-30 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-04-30 08:00:00 +0000 |
commit | 58db970ee83095b685c36603dbb05fab8ee810f7 (patch) | |
tree | 8fa219f0f5257b7df2526c1a22504082d4768906 | |
parent | 5afe61afd082d6fb7de6716bddd52bed9fb988e3 (diff) | |
download | strace-58db970ee83095b685c36603dbb05fab8ee810f7.tar.gz |
maint: do not shorten the copyright years range
* maint/update_copyright_years.sh (process_file): Skip updating
copyright years range if the last year in the file is later than
the year calculated from the latest commit.
-rwxr-xr-x | maint/update_copyright_years.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/maint/update_copyright_years.sh b/maint/update_copyright_years.sh index 0c866fa13..4383e0b7a 100755 --- a/maint/update_copyright_years.sh +++ b/maint/update_copyright_years.sh @@ -115,7 +115,7 @@ process_file() existing_notice_year=$(sed -n \ "/${existing_notice_re}/s//\\3/p" "$f") # assume copyright notice is still relevant - if [ "$last_commit_year" = "$copyright_year" ]; then + if [ "$last_commit_year" -le "$copyright_year" ]; then debug "Does not need update, skipping: $f" return else |