Skip to content

Commit ba3f881

Browse files
Merge pull request #68 from SAP/update-year
Update year
2 parents 3731cfd + b4623b5 commit ba3f881

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,16 @@ envtest: setup-envtest ## Install envtest binaries
114114
chmod -R u+w $$ENVTESTDIR && \
115115
rm -f $(LOCALBIN)/k8s/current && \
116116
ln -s $$ENVTESTDIR $(LOCALBIN)/k8s/current
117+
118+
# Set the year for SPDX header updates (default: current year)
119+
YEAR ?= $(shell date +%Y)
120+
121+
.PHONY: update-header-year
122+
update-header-year:
123+
# Go + TXT
124+
@find . -type f \( -name "*.go" -o -name "*.txt" \) -exec sed -i \
125+
's/^SPDX-FileCopyrightText: [0-9]\{4\}\( SAP SE or an SAP affiliate company and [^"]\+ contributors\)/SPDX-FileCopyrightText: $(YEAR)\1/' {} +
126+
127+
# TOML
128+
@find . -type f -name "*.toml" -exec sed -i \
129+
's/^SPDX-FileCopyrightText = "[0-9]\{4\}\( SAP SE or an SAP affiliate company and [^"]\+ contributors\)"/SPDX-FileCopyrightText = "$(YEAR)\1"/' {} +

REUSE.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
77
[[annotations]]
88
path = "**"
99
precedence = "aggregate"
10-
SPDX-FileCopyrightText = "2024 SAP SE or an SAP affiliate company and component-operator contributors"
10+
SPDX-FileCopyrightText = "2026 SAP SE or an SAP affiliate company and component-operator contributors"
1111
SPDX-License-Identifier = "Apache-2.0"
1212

1313
[[annotations]]
1414
path = "internal/decrypt/sops.go"
1515
precedence = "aggregate"
16-
SPDX-FileCopyrightText = "2020 The Flux authors, 2024 SAP SE or an SAP affiliate company and component-operator contributors"
16+
SPDX-FileCopyrightText = "2020 The Flux authors, 2026 SAP SE or an SAP affiliate company and component-operator contributors"
1717
SPDX-License-Identifier = "Apache-2.0"

0 commit comments

Comments
 (0)