diff options
author | jlam <jlam> | 2006-01-21 16:48:10 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-01-21 16:48:10 +0000 |
commit | 7ef79beedae4fe1c6326b4c1cd0ddded36da8549 (patch) | |
tree | 9d601f0ee0b65338b7d3cff0ed908d2a7f63063e /mk/scripts/extract | |
parent | f7030574556f9fa563606c0a970b2853b9126ba9 (diff) | |
download | pkgsrc-7ef79beedae4fe1c6326b4c1cd0ddded36da8549.tar.gz |
Teach extract how to extract *.z files using gzip.
Diffstat (limited to 'mk/scripts/extract')
-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 ;; |