diff options
author | adrianp <adrianp@pkgsrc.org> | 2006-02-19 15:38:23 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2006-02-19 15:38:23 +0000 |
commit | 79188ac9ffccad0e28648d2d612cd952eaa71fcc (patch) | |
tree | c8da3b9e5def936ca249ed9293142cd7f1239c19 /mk | |
parent | f61bec0cf2c6c43519a978a8b3f8adc4b31f0768 (diff) | |
download | pkgsrc-79188ac9ffccad0e28648d2d612cd952eaa71fcc.tar.gz |
Add .tar.bz support
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/scripts/extract | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/scripts/extract b/mk/scripts/extract index 0f632218898..ea477bae03a 100755 --- a/mk/scripts/extract +++ b/mk/scripts/extract @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: extract,v 1.19 2006/02/04 18:06:47 rillig Exp $ +# $NetBSD: extract,v 1.20 2006/02/19 15:38:23 adrianp Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -171,14 +171,14 @@ esac # Set the command to decompress the file and write the contents to stdout. case "$distfile" in *.gz|*.tgz|*.z) decompress_cat="${GZCAT}" ;; -*.bz2|*.tbz|*.tbz2) decompress_cat="${BZCAT}" ;; +*.bz2|*.tbz|*.tbz2|*.bz) decompress_cat="${BZCAT}" ;; *.Z) decompress_cat="${GZCAT}" ;; *) decompress_cat="${CAT}" ;; esac # Derive the format of the archive based on the file extension. case "$distfile" in -*.tar.gz|*.tgz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.Z|*.tar.z|*.tar) +*.tar.gz|*.tgz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.Z|*.tar.z|*.tar|*.tar.bz) _format=tar ;; *.shar.gz|*.shar.bz2|*.shar.Z|*.shar|*.shr.gz|*.shr.bz2|*.shr.Z|*.shr) _format=shar ;; |