File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"/' {} +
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
77[[annotations ]]
88path = " **"
99precedence = " 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"
1111SPDX-License-Identifier = " Apache-2.0"
1212
1313[[annotations ]]
1414path = " internal/decrypt/sops.go"
1515precedence = " 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"
1717SPDX-License-Identifier = " Apache-2.0"
You can’t perform that action at this time.
0 commit comments