pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/scripts Add .tar.bz support
details: https://anonhg.NetBSD.org/pkgsrc/rev/09b64d24da74
branches: trunk
changeset: 508443:09b64d24da74
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Sun Feb 19 15:38:23 2006 +0000
description:
Add .tar.bz support
diffstat:
mk/scripts/extract | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c20a9113abae -r 09b64d24da74 mk/scripts/extract
--- a/mk/scripts/extract Sun Feb 19 15:28:51 2006 +0000
+++ b/mk/scripts/extract Sun Feb 19 15:38:23 2006 +0000
@@ -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 @@
# 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 ;;
Home |
Main Index |
Thread Index |
Old Index