summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-01-20 23:58:49 +0000
committerjlam <jlam@pkgsrc.org>2006-01-20 23:58:49 +0000
commit6f807e3cce9c5b72a7bfcf6e710d9e15b1193aa2 (patch)
tree5fcc3ee1a70c4be62c1c0120e8ddc63daea24945 /mk/scripts
parent1ced514badeca789d4d7b8b434a2788d5eb2c3ec (diff)
downloadpkgsrc-6f807e3cce9c5b72a7bfcf6e710d9e15b1193aa2.tar.gz
Teach this script a default extraction method for *.bin files (which are
what Sun packagse its JRE/JDKs as). While here, cleanup up the comments slightly.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-xmk/scripts/extract9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/scripts/extract b/mk/scripts/extract
index 702036889be..0fb915340ca 100755
--- a/mk/scripts/extract
+++ b/mk/scripts/extract
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: extract,v 1.4 2006/01/20 22:26:12 jlam Exp $
+# $NetBSD: extract,v 1.5 2006/01/20 23:58:49 jlam Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -67,9 +67,10 @@
# ability.
#
# ENVIRONMENT
+# EXTRACT_OPTS_BIN
# EXTRACT_OPTS_LHA
-# EXTRACT_OPTS_RAR
# EXTRACT_OPTS_PAX
+# EXTRACT_OPTS_RAR
# EXTRACT_OPTS_TAR
# EXTRACT_OPTS_ZIP
# EXTRACT_OPTS_ZOO
@@ -210,6 +211,10 @@ case "$distfile" in
${UNRAR} -x ${EXTRACT_OPTS_RAR} "$distfile" "$@"
;;
+*.bin)
+ ${ECHO} yes | "$distfile" ${EXTRACT_OPTS_BIN} >/dev/null
+ ;;
+
*)
${ECHO} 1>&2 "$self: unable to extract: $1"
exit 1