Skip to content

Commit

Permalink
Fix tar file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino authored and sourishkrout committed Aug 21, 2019
1 parent 10242fd commit 7dabec8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -281,15 +281,15 @@ binary-darwin:

define BUNDLE
$(q)BUNDLE_DIR=$(BINARY_OUTPUT)$(1)/bundle; \
stepName=step-certificates_$(2); \
stepName=step-sds_$(2); \
mkdir -p $$BUNDLE_DIR $(RELEASE); \
TMP=$$(mktemp -d $$BUNDLE_DIR/tmp.XXXX); \
trap "rm -rf $$TMP" EXIT INT QUIT TERM; \
newdir=$$TMP/$$stepName; \
mkdir -p $$newdir/bin; \
cp $(BINARY_OUTPUT)$(1)/bin/$(BINNAME) $$newdir/bin/; \
cp README.md $$newdir/; \
NEW_BUNDLE=$(RELEASE)/step-certificates_$(2)_$(1)_$(3).tar.gz; \
NEW_BUNDLE=$(RELEASE)/step-sds_$(2)_$(1)_$(3).tar.gz; \
rm -f $$NEW_BUNDLE; \
tar -zcvf $$NEW_BUNDLE -C $$TMP $$stepName;
endef
Expand All @@ -312,7 +312,7 @@ artifacts-darwin-tag: bundle-darwin

artifacts-archive-tag:
$Q mkdir -p $(RELEASE)
$Q git archive v$(VERSION) | gzip > $(RELEASE)/step-certificates.tar.gz
$Q git archive v$(VERSION) | gzip > $(RELEASE)/step-sds.tar.gz

artifacts-tag: artifacts-linux-tag artifacts-darwin-tag artifacts-archive-tag

Expand Down

0 comments on commit 7dabec8

Please sign in to comment.