chore: add license update script

This commit is contained in:
2025-01-14 15:24:24 +03:00
parent 5d1d3d7c45
commit 3224d7c6e4
4 changed files with 121 additions and 0 deletions

View File

@ -48,3 +48,8 @@ uninstall:
clean clear:
rm -f $(BIN)
IGNORE_OLD_FILES := $(foreach file,$(shell cat old-files),-ignore $(file))
update-license:
go run github.com/google/addlicense@latest -v -f license-header-old-files.tmpl $$(< old-files)
go run github.com/google/addlicense@latest -v -f license-header.tmpl $(IGNORE_OLD_FILES) .