summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-10-23 16:39:29 +0000
committerminskim <minskim@pkgsrc.org>2018-10-23 16:39:29 +0000
commitfb47ebcdd4f457e0840a4f39c715d3f1faa69d03 (patch)
tree692682c1d87baa61bd5f0faa3d68ab2315e98428 /mk
parent83202d35719023cf7e6aced61e7ca02323a837bc (diff)
downloadpkgsrc-fb47ebcdd4f457e0840a4f39c715d3f1faa69d03.tar.gz
lang/rust: Extract .cargo without making a copy in ${WRKDIR}
Diffstat (limited to 'mk')
-rwxr-xr-xmk/extract/extract6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/extract/extract b/mk/extract/extract
index 933493e6d06..8e1f1729755 100755
--- a/mk/extract/extract
+++ b/mk/extract/extract
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: extract,v 1.17 2018/08/22 20:48:37 maya Exp $
+# $NetBSD: extract,v 1.18 2018/10/23 16:39:29 minskim Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -175,7 +175,7 @@ esac
# Derive the compression format of the archive based on the file extension.
case "$distfile" in
-*.gz|*.tgz|*.z) _cformat=gzip ;;
+*.gz|*.tgz|*.z|*.crate) _cformat=gzip ;;
*.7z) _cformat=7z ;;
*.bz2|*.tbz|*.tbz2|*.bz) _cformat=bzip ;;
*.lz) _cformat=lzip ;;
@@ -202,7 +202,7 @@ esac
# Derive the format of the archive based on the file extension.
case "$distfile" in
-*.tar.gz|*.tgz|*-tar.gz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.lz|*.tar.lzma|*.tar.xz|*.tar.Z|*.tar.z|*.tar|*.tar.bz|*.tar.7z)
+*.tar.gz|*.tgz|*-tar.gz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.lz|*.tar.lzma|*.tar.xz|*.tar.Z|*.tar.z|*.tar|*.tar.bz|*.tar.7z|*.crate)
_format=tar ;;
*.cpio|*.cpio.gz|*.cpio.bz2)
_format=cpio ;;