summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-06-28 20:51:21 +0200
committerChristian Breunig <christian@breunig.cc>2025-06-28 23:16:52 +0200
commit1478516ae437f19ebeb7d6ff9b83dd74f8e76758 (patch)
tree414fdb9803a2f32958b8caa1741c70d1855bb1fb /Makefile
parent22c6a817faee11ef97bb33a5431d7467b683c2e6 (diff)
downloadvyos-1x-1478516ae437f19ebeb7d6ff9b83dd74f8e76758.tar.gz
vyos-1x-1478516ae437f19ebeb7d6ff9b83dd74f8e76758.zip
T7591: remove copyright years from source files
The legal team says years are not necessary so we can go ahead with it, since it will simplify backporting. Automatically removed using: git ls-files | grep -v libvyosconfig | xargs sed -i -E \ 's/^# Copyright (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers.*/# Copyright VyOS maintainers and contributors <maintainers@vyos.io>/g' In addition we will error-out during "make" if someone re-adds a legacy copyright notice
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e85ccd7f4..59ecb7b51 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 (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers"; then \
+ echo "Error: Legacy copyright notice found."; \
+ exit 1; \
+ fi
.PHONY: clean
clean: