From cddecfc8ae29f99e2243ffdd6042555ad3d9f373 Mon Sep 17 00:00:00 2001 From: Janki Chhatbar Date: Wed, 5 Jul 2023 15:16:45 +0530 Subject: [PATCH] Rename subctl binary to `subctl` Currently while building a subctl is binary is named as `subctl-$version-$arch`. This PR renames the binary to just `subctl`. This is one of the requirements of Krew. Epic: https://github.com/submariner-io/enhancements/issues/182 Signed-off-by: Janki Chhatbar --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 429131fbc..832ad2f49 100644 --- a/Makefile +++ b/Makefile @@ -92,11 +92,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-$(VERSION)/" $< + tar -cJf $@ --transform "s|^cmd/bin/subctl-[^/]*|subctl-$(VERSION)/subctl|" $< dist/subctl-%.tar.gz: cmd/bin/subctl-% mkdir -p dist - tar -czf $@ --transform "s/^cmd.bin/subctl-$(VERSION)/" $< + tar -czf $@ --transform "s|^cmd/bin/subctl-[^/]*|subctl-$(VERSION)/subctl|" $< dist/subctl-checksums.txt: $(CROSS_TARBALLS) cd $(@D) && sha256sum $(^F) >> $(@F)