diff options
author | jlam <jlam@pkgsrc.org> | 2006-01-21 16:48:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-01-21 16:48:10 +0000 |
commit | 53a8e34feca7b6c24fdc40772bd4634167fbe7bd (patch) | |
tree | 9d601f0ee0b65338b7d3cff0ed908d2a7f63063e /mk | |
parent | 42c1f7217db1ad69d8b2d651b73da449db431d5f (diff) | |
download | pkgsrc-53a8e34feca7b6c24fdc40772bd4634167fbe7bd.tar.gz |
Teach extract how to extract *.z files using gzip.
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/scripts/extract | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/scripts/extract b/mk/scripts/extract index 4390cc06189..fcde98aeac7 100755 --- a/mk/scripts/extract +++ b/mk/scripts/extract @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: extract,v 1.10 2006/01/21 16:40:19 jlam Exp $ +# $NetBSD: extract,v 1.11 2006/01/21 16:48:10 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -153,7 +153,7 @@ distfile="$1"; shift # Set the command to decompress the file and write the contents to stdout. case "$distfile" in -*.gz|*.tgz) decompress_cat="${GZCAT}" ;; +*.gz|*.tgz|*.z) decompress_cat="${GZCAT}" ;; *.bz2|*.tbz|*.tbz2) decompress_cat="${BZCAT}" ;; *.Z) decompress_cat="${GZCAT}" ;; esac @@ -166,7 +166,8 @@ case "$distfile" in _format=shar ;; *.zip) _format=zip ;; *.lha|*.lzh) _format=lha ;; -*.Z|*.bz2|*.gz) _format=compressed ;; +*.Z|*.bz2|*.gz|*.z) + _format=compressed ;; *.zoo) _format=zoo ;; *.rar) _format=rar ;; *.bin) _format=jre-bin ;; |