diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-07 00:32:49 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-07 00:32:49 -0600 |
commit | cb644e112c2b9f52fb0f96f1e1174c58c7f3bcf8 (patch) | |
tree | b0f04ceaa1808a98d2662ba1e17047bc7e0f64ea | |
parent | 7a80e48b287352c5154528f8e785910c0b8c04c4 (diff) |
lint-generic: Check that copyright statements get updated
-rwxr-xr-x | build-aux/lint-generic | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build-aux/lint-generic b/build-aux/lint-generic index 58a65d2..290988c 100755 --- a/build-aux/lint-generic +++ b/build-aux/lint-generic @@ -31,6 +31,11 @@ for filename in "$@"; do if ! grep -E -q 'Copyright \(C\) 202[4-9]((-|, )202[5-9])* Luke T. Shumaker' "$filename"; then err "$filename" 'is missing a copyright statement' fi + if test -e .git && ! git diff --quiet milestone/2025-01-01 HEAD -- "$filename"; then + if ! grep -E -q 'Copyright \(C\) .*2025 Luke T. Shumaker' "$filename"; then + err "$filename" 'has an outdated copyright statement' + fi + fi if ! grep -q '\sSPDX-License-Identifier[:] ' "$filename"; then err "$filename" 'is missing an SPDX-License-Identifier' fi |