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 | 28554c4f652b0440d97a3c3bfb96aaf9218fb660 (patch) | |
tree | c8da3b9e5def936ca249ed9293142cd7f1239c19 | |
parent | e38045fe24dae3c9330ef335205cd5dce1085c99 (diff) | |
download | pkgsrc-28554c4f652b0440d97a3c3bfb96aaf9218fb660.tar.gz |
Add .tar.bz support
-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 ;; |