[TOREE-452] Fix source and binary distributiion structure Binary dsitribution untar to toree-$(VERSION) folder where the source distribution untar to toree-$(VERSION)-src folder.
Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/da1a6722 Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/da1a6722 Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/da1a6722 Branch: refs/heads/master Commit: da1a6722486be7dd10c33a43079ae0b718e18ff4 Parents: 2442bc0 Author: Luciano Resende <lrese...@apache.org> Authored: Sat Nov 4 17:46:59 2017 -0700 Committer: Luciano Resende <lrese...@apache.org> Committed: Sat Nov 4 17:56:13 2017 -0700 ---------------------------------------------------------------------- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/da1a6722/Makefile ---------------------------------------------------------------------- diff --git a/Makefile b/Makefile index b459b30..02c4e4f 100644 --- a/Makefile +++ b/Makefile @@ -247,8 +247,10 @@ publish-pip: sign-pip # BIN PACKAGE ################################################################################ dist/toree-bin/toree-$(VERSION)-bin.tar.gz: dist/toree + @ln -s toree dist/toree-$(VERSION) @mkdir -p dist/toree-bin - @(cd dist; tar -cvzf toree-bin/toree-$(VERSION)-bin.tar.gz toree) + @(cd dist; tar -cvzhf toree-bin/toree-$(VERSION)-bin.tar.gz toree-$(VERSION)) + @rm dist/toree-$(VERSION) bin-release: dist/toree-bin/toree-$(VERSION)-bin.tar.gz @@ -264,7 +266,7 @@ publish-bin: ################################################################################ dist/toree-src/toree-$(VERSION)-src.tar.gz: @mkdir -p dist/toree-src - @tar -X 'etc/.src-release-ignore' -cvzf dist/toree-src/toree-$(VERSION)-src.tar.gz . + @git archive HEAD --prefix toree-$(VERSION)-src/ -o dist/toree-src/toree-$(VERSION)-src.tar.gz src-release: dist/toree-src/toree-$(VERSION)-src.tar.gz