From 1e513927688ffee514b8b4ca932dde5620a2dd62 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 30 Oct 2019 02:07:48 -0700 Subject: [PATCH] Add missing license header Signed-off-by: Tamal Saha --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9f2d49fe4..cbc865033 100644 --- a/Makefile +++ b/Makefile @@ -489,9 +489,22 @@ verify-gen: gen fmt echo "files are out of date, run make gen fmt"; exit 1; \ fi +.PHONY: add-license +add-license: + @echo "Adding license header" + @docker run --rm \ + -u $$(id -u):$$(id -g) \ + -v /tmp:/.cache \ + -v $$(pwd):$(DOCKER_REPO_ROOT) \ + -w $(DOCKER_REPO_ROOT) \ + --env HTTP_PROXY=$(HTTP_PROXY) \ + --env HTTPS_PROXY=$(HTTPS_PROXY) \ + $(BUILD_IMAGE) \ + ltag -t "./hack/license" --excludes "vendor contrib" -v + .PHONY: check-license check-license: - @echo "Checking files have proper license header" + @echo "Checking files for license header" @docker run --rm \ -u $$(id -u):$$(id -g) \ -v /tmp:/.cache \