summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-04-30 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2023-04-30 08:00:00 +0000
commit58db970ee83095b685c36603dbb05fab8ee810f7 (patch)
tree8fa219f0f5257b7df2526c1a22504082d4768906
parent5afe61afd082d6fb7de6716bddd52bed9fb988e3 (diff)
downloadstrace-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-xmaint/update_copyright_years.sh2
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