summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-21 18:58:03 +0000
committerjlam <jlam>2006-07-21 18:58:03 +0000
commit0810b44288029cae473d683c8aff311b2c4adf85 (patch)
treeb002a119a7ddcd9f6615c339d4f19879dc509920 /bootstrap
parented6a8f7e464272159205742717b921c74732c80d (diff)
downloadpkgsrc-0810b44288029cae473d683c8aff311b2c4adf85.tar.gz
Add a new option "--full" that implies all of the platform-independent
bootstrap software will be installed, regardless of platform.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap18
1 files changed, 17 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 5970539437c..1149315ca1c 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.75 2006/07/21 18:46:52 jlam Exp $
+# $NetBSD: bootstrap,v 1.76 2006/07/21 18:58:03 jlam Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -58,6 +58,7 @@ usage="Usage: $0 "'
[ --ignore-case-check ]
[ --ignore-user-check ]
[ --preserve-path ]
+ [ --full ]
[ --help ]'
# this replicates some of the logic in bsd.prefs.mk. until
@@ -250,6 +251,7 @@ pkgdbdir=
pkgmandir=
sysconfdir=
varbase=
+full=
while [ $# -gt 0 ]; do
case $1 in
@@ -270,6 +272,7 @@ while [ $# -gt 0 ]; do
--ignore-case-check) ignorecasecheck=yes ;;
--ignore-user-check) ignoreusercheck=yes ;;
--preserve-path) preserve_path=yes ;;
+ --full) full=yes ;;
--help) echo "$usage"; exit ;;
-h) echo "$usage"; exit ;;
--*) echo "$usage"; exit 1 ;;
@@ -509,6 +512,19 @@ OSF1)
;;
esac
+# If "--full" is specified, then install all of the platform-independent
+# bootstrap software.
+#
+case "$full" in
+yes)
+ need_pax=yes
+ need_mtree=yes
+ need_bsd_install=yes
+ need_awk=yes
+ need_sed=yes
+ ;;
+esac
+
# export OPSYS and MACHINE_ARCH for pkg_install. we only set
# MACHINE_ARCH on platforms where we override bmake's value.
OPSYS=${opsys}