diff options
author | jlam <jlam@pkgsrc.org> | 2006-01-20 20:00:15 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-01-20 20:00:15 +0000 |
commit | 3afa428cae912bae15a8ee8082d1869880a3407d (patch) | |
tree | d126261bf66c2745fba6111ca442738bfccfd0d2 /mk/scripts | |
parent | 0cbc44e57966e50a1559e098ace7433ca3039575 (diff) | |
download | pkgsrc-3afa428cae912bae15a8ee8082d1869880a3407d.tar.gz |
Fix processing of -t tarprog.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-x | mk/scripts/extract | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/scripts/extract b/mk/scripts/extract index e2917aa8b9e..0c5e69f4870 100755 --- a/mk/scripts/extract +++ b/mk/scripts/extract @@ -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 @@ extract_using=tar # 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 @@ case "$distfile" in *.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}" ;; |