From e03538189ead4426d32142d0df495eda6f0dba2d Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 6 Nov 2006 21:01:42 +0000 Subject: Set PKG_PRESERVE on install-sh, nbsed, nawk if installed for the current platform as a bootstrap tool. These cannot be nuked as part of the bulk build clean cycles, or else parts of the .mk infrastructure won't work. --- bootstrap/bootstrap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index df6ce2338ad..08ef4bb7a45 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.86 2006/10/13 19:09:53 rillig Exp $ +# $NetBSD: bootstrap,v 1.87 2006/11/06 21:01:42 tv Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -883,13 +883,13 @@ register_package() { echo_msg "Registering installed packages" run_cmd "(cd $pkgsrcdir/pkgtools/bootstrap-mk-files && $bmake MAKECONF=${MKCONF_EXAMPLE} WRKOBJDIR=$wrkobjdir bootstrap-register)" case "$need_awk" in -yes) register_package "lang/nawk";; +yes) register_package "lang/nawk" "PKG_PRESERVE=yes";; esac case "$need_sed" in -yes) register_package "textproc/nbsed" "LIBNBCOMPAT_STYLE=inplace";; +yes) register_package "textproc/nbsed" "LIBNBCOMPAT_STYLE=inplace PKG_PRESERVE=yes";; esac case "$need_bsd_install" in -yes) register_package "sysutils/install-sh";; +yes) register_package "sysutils/install-sh" "PKG_PRESERVE=yes";; esac case "$need_extras" in yes) register_package "pkgtools/bootstrap-extras";; -- cgit v1.2.3