From cee75533196121c8cb3298c798aafa76c20defb5 Mon Sep 17 00:00:00 2001 From: Justin McCarthy Date: Fri, 18 May 2018 16:48:25 -0700 Subject: [PATCH] invoke update in tap dir --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7949f5a..984155a 100644 --- a/Makefile +++ b/Makefile @@ -78,6 +78,9 @@ release-env: ifndef GH_LOGIN $(error GH_LOGIN must be set to a valid GitHub token) endif +ifndef COMPLY_TAPDIR + $(error COMPLY_TAPDIR must be set to the path of the comply homebrew tap repo) +endif release: release-env dist release-deps $(eval VERSION := $(shell git describe --tags --always --dirty="-dev")) @@ -105,9 +108,9 @@ release: release-env dist release-deps --file dist/comply-$(VERSION)-linux-amd64.tgz @echo "Update homebrew formula with the following: " - $(eval SHA := $(shell curl -s -L https://github.com/strongdm/comply/archive/$(VERSION).tar.gz |shasum -a 256|awk '{print $1}')) + $(eval SHA := $(shell curl -s -L https://github.com/strongdm/comply/archive/$(VERSION).tar.gz |shasum -a 256|cut -d" " -f1)) @echo "version $(VERSION) sha $(SHA)" - + cd $$COMPLY_TAPDIR && ./update.sh $(VERSION) $(SHA) patch-release: release-env push-assets patch release $(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))