diff options
author | minskim <minskim> | 2008-11-15 20:25:34 +0000 |
---|---|---|
committer | minskim <minskim> | 2008-11-15 20:25:34 +0000 |
commit | 60a7fafbd0ddef0a4bd25b0164b446c7792608cc (patch) | |
tree | 08926f444ec6b2f87aaf39a7e6d1d28e894e20e8 /mk/extract/extract | |
parent | ca4cf7eaf83f5928aca3d267276b3b166b690b46 (diff) | |
download | pkgsrc-60a7fafbd0ddef0a4bd25b0164b446c7792608cc.tar.gz |
Decompress .lzma files with lzcat.
Diffstat (limited to 'mk/extract/extract')
-rwxr-xr-x | mk/extract/extract | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/extract/extract b/mk/extract/extract index 62d8b1ee76d..b57e842527a 100755 --- a/mk/extract/extract +++ b/mk/extract/extract @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: extract,v 1.7 2007/07/31 17:42:40 jlam Exp $ +# $NetBSD: extract,v 1.8 2008/11/15 20:25:34 minskim Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -181,6 +181,7 @@ esac case "$distfile" in *.gz|*.tgz|*.z) _cformat=gzip ;; *.bz2|*.tbz|*.tbz2|*.bz) _cformat=bzip ;; +*.lzma) _cformat=lzma ;; *.Z) _cformat=compress ;; *) _cformat=none ;; esac @@ -192,13 +193,14 @@ ${TEST} -n "$cformat" || cformat="$_cformat" case "$cformat" in gzip|compress) decompress_cat="${GZCAT}" ;; bzip) decompress_cat="${BZCAT}" ;; +lzma) decompress_cat="${LZCAT}" ;; none) decompress_cat="${CAT}" ;; *) decompress_cat="${CAT}" ;; 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.Z|*.tar.z|*.tar|*.tar.bz) +*.tar.gz|*.tgz|*-tar.gz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.lzma|*.tar.Z|*.tar.z|*.tar|*.tar.bz) _format=tar ;; *.cpio|*.cpio.gz|*.cpio.bz2) _format=cpio ;; |