summaryrefslogtreecommitdiff
path: root/pkg/git
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-05-08 13:05:22 -0700
committerMichael Forney <mforney@mforney.org>2020-05-08 13:05:22 -0700
commitf74127556dade2c7434517caf16967e452787d79 (patch)
tree1227b2bce10bcd9878f3944800a34d7dfaded272 /pkg/git
parent64dcee6008ce4d8704babb9a107fd0afdb6f4993 (diff)
Detect decompression tool automatically
This fixes cross-compilation from macOS, whose bsdtar does support xz through liblzma, but does not have xz(1).
Diffstat (limited to 'pkg/git')
-rw-r--r--pkg/git/fetch.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/git/fetch.sh b/pkg/git/fetch.sh
index cac21b42..9b17a0d5 100644
--- a/pkg/git/fetch.sh
+++ b/pkg/git/fetch.sh
@@ -1,5 +1,4 @@
: "${SHA256SUM:=sha256sum}"
-: "${PAXREAD:=pax -r}"
set -e
@@ -18,4 +17,4 @@ if ! $SHA256SUM -c sha256 2>/dev/null ; then
fi
read -r _ archive <sha256
-gzip -d -c "$archive" | $PAXREAD -s ',^\.,src/man,'
+sh "$OLDPWD/scripts/extract.sh" "$archive" -s ',^\.,src/man,'