diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-06-28 20:51:21 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-06-28 23:16:52 +0200 |
| commit | 1478516ae437f19ebeb7d6ff9b83dd74f8e76758 (patch) | |
| tree | 414fdb9803a2f32958b8caa1741c70d1855bb1fb /Makefile | |
| parent | 22c6a817faee11ef97bb33a5431d7467b683c2e6 (diff) | |
| download | vyos-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-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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: |
