summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-07-03 14:12:53 +0100
committerGitHub <noreply@github.com>2025-07-03 14:12:53 +0100
commit036f08f14a029b64366eff61e30a2de49e591759 (patch)
tree832cda9b7c4866e46fa0cbb2e712b48400372b79 /Makefile
parent12622098d406b5fbb66f79c17d70f7c47528f12f (diff)
parent6ea9bbc2f9a6f27ba194192adc8032e10685b0d8 (diff)
downloadvyos-1x-036f08f14a029b64366eff61e30a2de49e591759.tar.gz
vyos-1x-036f08f14a029b64366eff61e30a2de49e591759.zip
Merge pull request #4585 from c-po/copyright-notice
T7591: remove copyright years from source files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e85ccd7f4..218fc4ae1 100644
--- a/Makefile
+++ b/Makefile
@@ -89,7 +89,14 @@ vyshim:
$(MAKE) -C $(SHIM_DIR)
.PHONY: all
-all: clean libvyosconfig interface_definitions op_mode_definitions test j2lint vyshim generate-configd-include-json
+all: clean copyright libvyosconfig interface_definitions op_mode_definitions test j2lint vyshim generate-configd-include-json
+
+.PHONY: copyright
+copyright:
+ @if git grep -q -E "Copyright( \(C\))? (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers"; then \
+ echo "Error: Legacy copyright notice found."; \
+ exit 1; \
+ fi
.PHONY: clean
clean: