Skip to content

Commit

Permalink
Add LICENSE to tars
Browse files Browse the repository at this point in the history
Add LICENSE file to the subctl binary tars. This is a requirement to
enable krew installation of subctl.

Signed-off-by: Janki Chhatbar <[email protected]>
  • Loading branch information
Jaanki committed Oct 19, 2023
1 parent 6c885f8 commit 171592f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ cmd/bin/subctl: cmd/bin/subctl-$(VERSION)-$(GOOS)-$(GOARCH)$(GOEXE)

dist/subctl-%.tar.xz: cmd/bin/subctl-%
mkdir -p dist
tar -cJf $@ --transform "s|^cmd/bin/subctl-[^/]*|subctl-$(VERSION)/subctl|" $<
tar -cJf $@ --transform "s|^cmd/bin/subctl-[^/]*|subctl-$(VERSION)/subctl|" --add-file=LICENSE $<

dist/subctl-%.tar.gz: cmd/bin/subctl-%
mkdir -p dist
tar -czf $@ --transform "s|^cmd/bin/subctl-[^/]*|subctl-$(VERSION)/subctl|" $<
tar -czf $@ --transform "s|^cmd/bin/subctl-[^/]*|subctl-$(VERSION)/subctl|" --add-file=LICENSE $<

dist/subctl-checksums.txt: $(CROSS_TARBALLS)
cd $(@D) && sha256sum $(^F) >> $(@F)
Expand Down

0 comments on commit 171592f

Please sign in to comment.