From: Johan Bergström Date: Thu, 26 Feb 2015 00:08:16 +0000 (+1100) Subject: build: reduce tarball size by 8-10% X-Git-Tag: v1.4.2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8310cbd3e2d21f395ce42bb313e85e0e85eaffe;p=platform%2Fupstream%2Fnodejs.git build: reduce tarball size by 8-10% Slim the tarballs further by removing examples, documentation and test for third party libraries. Also switch to checkout-index versus archive so we avoid using tar. PR-URL: https://github.com/iojs/io.js/pull/961 Reviewed-By: Trevor Norris Reviewed-By: Ben Noordhuis Reviewed-By: Rod Vagg --- diff --git a/Makefile b/Makefile index 3c1bdb7..072c62d 100644 --- a/Makefile +++ b/Makefile @@ -277,12 +277,14 @@ $(PKG): release-only SIGN="$(INT_SIGN)" PKG="$(PKG)" bash tools/osx-productsign.sh $(TARBALL): release-only $(NODE_EXE) doc - git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf - + git checkout-index -a -f --prefix=$(TARNAME)/ mkdir -p $(TARNAME)/doc/api cp doc/iojs.1 $(TARNAME)/doc/iojs.1 cp -r out/doc/api/* $(TARNAME)/doc/api/ - rm -rf $(TARNAME)/deps/v8/test # too big + rm -rf $(TARNAME)/deps/v8/{test,samples,tools/profviz} # too big rm -rf $(TARNAME)/doc/images # too big + rm -rf $(TARNAME)/deps/uv/{docs,samples,test} + rm -rf $(TARNAME)/deps/openssl/{doc,demos,test} rm -rf $(TARNAME)/deps/zlib/contrib # too big, unused find $(TARNAME)/ -type l | xargs rm # annoying on windows tar -cf $(TARNAME).tar $(TARNAME)