From 79188ac9ffccad0e28648d2d612cd952eaa71fcc Mon Sep 17 00:00:00 2001 From: adrianp Date: Sun, 19 Feb 2006 15:38:23 +0000 Subject: Add .tar.bz support --- mk/scripts/extract | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mk') 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 ;; -- cgit v1.2.3