pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/scripts Fix processing of -t tarprog.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6552bf9d852d
branches:  trunk
changeset: 506686:6552bf9d852d
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jan 20 20:00:15 2006 +0000

description:
Fix processing of -t tarprog.

diffstat:

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

diffs (28 lines):

diff -r 4d0c5d586f01 -r 6552bf9d852d mk/scripts/extract
--- a/mk/scripts/extract        Fri Jan 20 19:59:06 2006 +0000
+++ b/mk/scripts/extract        Fri Jan 20 20:00:15 2006 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: extract,v 1.1 2006/01/20 18:00:45 jlam Exp $
+# $NetBSD: extract,v 1.2 2006/01/20 20:00:15 jlam Exp $
 #
 # Copyright (c) 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -103,7 +103,7 @@
 # Process optional arguments
 while ${TEST} $# -gt 0; do
        case "$1" in
-       -t)     extract_using="$1"; shift 2 ;;
+       -t)     extract_using="$2"; shift 2 ;;
        -x)     exclude=yes; shift ;;
        --)     shift; break ;;
        -*)     ${ECHO} 1>&2 "$self: unknown option -- ${1#-}"
@@ -138,7 +138,6 @@
 *.tar.gz|*.tgz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.Z|*.tar)
        case "$extract_using" in
        *pax)
-               distfile="$1"; shift
                case "$extract_using" in
                /*)     paxprog="$extract_using" ;;
                *)      paxprog="${PAX}" ;;



Home | Main Index | Thread Index | Old Index