diff options
author | jlam <jlam@pkgsrc.org> | 2006-01-20 20:00:44 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-01-20 20:00:44 +0000 |
commit | 60313d1dd8526e52c98d4e5fa24d95e43e6f9c73 (patch) | |
tree | e331cd45bfa604c136ae9992a963fa97f243ae2a /mk/scripts | |
parent | 53f330ad0e40a33083cf2caef0352874dc8ea840 (diff) | |
download | pkgsrc-60313d1dd8526e52c98d4e5fa24d95e43e6f9c73.tar.gz |
Add some whitespace for readability.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-x | mk/scripts/extract | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/scripts/extract b/mk/scripts/extract index 0c5e69f4870..ac89966fb0f 100755 --- a/mk/scripts/extract +++ b/mk/scripts/extract @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: extract,v 1.2 2006/01/20 20:00:15 jlam Exp $ +# $NetBSD: extract,v 1.3 2006/01/20 20:00:44 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -159,29 +159,36 @@ case "$distfile" in exit 1 esac ;; + *.shar.gz|*.shar.bz2|*.shar.Z|*.shar) $decompress_cat "$distfile" | ${SH} ;; + *.zip) : ${EXTRACT_OPTS_ZOO=-Laqo} ${TEST} "$exclude" = "no" || exclude_flag="-x" ${UNZIP} ${EXTRACT_OPTS_ZOO} "$distfile" $exclude_flag "$@" ;; + *.lha|*.lzh) : ${EXTRACT_OPTS_LHA=q} ${LHA} x$extract_options "$distfile" "$@" ;; + *.Z|*.bz2|*.gz) target="${distfile##*/}"; target="${target%.*}" $decompress_cat "$distfile" > "$target" ;; + *.zoo) ${UNZOO} -x ${EXTRACT_OPTS_ZOO} "$distfile" "$@" ;; + *.rar) : ${EXTRACT_OPTS_RAR=-inul} ${UNRAR} -x ${EXTRACT_OPTS_RAR} "$distfile" "$@" ;; + *) ${ECHO} 1>&2 "$self: unable to extract: $1" exit 1 |