pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/scripts Add some whitespace for readability.
details: https://anonhg.NetBSD.org/pkgsrc/rev/f2a9b71aa6bb
branches: trunk
changeset: 506687:f2a9b71aa6bb
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Jan 20 20:00:44 2006 +0000
description:
Add some whitespace for readability.
diffstat:
mk/scripts/extract | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (48 lines):
diff -r 6552bf9d852d -r f2a9b71aa6bb mk/scripts/extract
--- a/mk/scripts/extract Fri Jan 20 20:00:15 2006 +0000
+++ b/mk/scripts/extract Fri Jan 20 20:00:44 2006 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index