pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/scripts Teach extract how to extract *.z files usin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e47c0ee0d834
branches:  trunk
changeset: 506758:e47c0ee0d834
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Jan 21 16:48:10 2006 +0000

description:
Teach extract how to extract *.z files using gzip.

diffstat:

 mk/scripts/extract |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r a0691f3a52ac -r e47c0ee0d834 mk/scripts/extract
--- a/mk/scripts/extract        Sat Jan 21 16:40:19 2006 +0000
+++ b/mk/scripts/extract        Sat Jan 21 16:48:10 2006 +0000
@@ -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 @@
 
 # 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 @@
                _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 ;;



Home | Main Index | Thread Index | Old Index