From 3973223593ab7bded806f02473164ac105f2896e Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 9 Aug 2016 23:02:28 -0600 Subject: make-tarball: older versions of git with --format=tar. Some older versions of git (Centos 6) do not have --format=tar.gz. To work around this, create a .tar file and then compress it. --- tools/make-tarball | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/make-tarball') diff --git a/tools/make-tarball b/tools/make-tarball index d8705896..c150dd2f 100755 --- a/tools/make-tarball +++ b/tools/make-tarball @@ -55,5 +55,9 @@ if [ "$rev" = HEAD ] && ! git diff-index --quiet HEAD --; then fi fi -git archive --format=tar.gz --prefix="$archive_base/" "$rev" > "$output" +TEMP_D=$(mktemp -d) +tar=${output##*/} +tar="$TEMP_D/${tar%.gz}" +git archive --format=tar --prefix="$archive_base/" "$rev" > "$tar" +gzip -9 -c "$tar" > "$output" echo "$output" -- cgit v1.2.3