24676164 prep-git.mk only archives with .tar.gz
authorDanek Duvall <danek.duvall@oracle.com>
Thu, 15 Sep 2016 14:40:13 -0700
changeset 6952 ce0a03807d13
parent 6951 deaf66c90a34
child 6953 04ea750165c9
24676164 prep-git.mk only archives with .tar.gz
make-rules/prep-git.mk
--- a/make-rules/prep-git.mk	Thu Sep 15 14:25:24 2016 -0700
+++ b/make-rules/prep-git.mk	Thu Sep 15 14:40:13 2016 -0700
@@ -98,7 +98,11 @@
 	$(GIT) clone $$(GIT_REPO$(1)) $$(GIT_BRANCH_ARG$(1)) $$$${TMP_REPO} && \
 	(cd $$$${TMP_REPO} ; $(GIT) checkout \
 	$$(GIT_COMMIT_ID$(1))) && \
-	(cd $$$${TMP_REPO} ; $(GIT) archive --format tar.gz \
+	(cd $$$${TMP_REPO} ; \
+		$(GIT) config tar.tar.bz2.command "bzip2 -c"; \
+		$(GIT) config tar.tar.xz.command "xz -c"; \
+		$(GIT) archive \
+		--format $(subst $(COMPONENT_SRC$(1)).,,$(COMPONENT_ARCHIVE$(1))) \
 		--prefix $$(COMPONENT_SRC$(1))/ \
 		$$(or $$(GIT_COMMIT_ID$(1)),$$(GIT_BRANCH$(1)))) > [email protected] && \
 	$(RM) -r $$$${TMP_REPO} ) && \