From 97b21b767fd8206d89617d5c56e24d93dde28e1b Mon Sep 17 00:00:00 2001 From: obache Date: Mon, 30 Aug 2010 06:21:49 +0000 Subject: Set WRKOBJDIR=${workdir}/pkgsrc to target mk.conf if --workdir is specified. --- bootstrap/bootstrap | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index ecfda6d9e2e..892bd38520f 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.158 2010/08/13 18:57:36 joerg Exp $ +# $NetBSD: bootstrap,v 1.159 2010/08/30 06:21:49 obache Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -362,6 +362,7 @@ pkgdbdir= pkgmandir= sysconfdir= varbase= +workdir= full=no compiler="" @@ -370,8 +371,8 @@ mk_fragment= while [ $# -gt 0 ]; do case $1 in - --workdir=*) wrkdir=`get_optarg "$1"` ;; - --workdir) wrkdir="$2"; shift ;; + --workdir=*) wrkdir=`get_optarg "$1"`; workdir=${wrkdir} ;; + --workdir) wrkdir="$2"; shift; workdir=${wrkdir} ;; --prefix=*) prefix=`get_optarg "$1"` ;; --prefix) prefix="$2"; shift ;; --pkgdbdir=*) pkgdbdir=`get_optarg "$1"` ;; @@ -1054,6 +1055,9 @@ fi opsys_finish echo "WRKOBJDIR= ${wrkdir}/wrk" >> ${BOOTSTRAP_MKCONF} +if [ ! -z "${workdir}" ]; then + echo "WRKOBJDIR= ${workdir}/pkgsrc" >> ${TARGET_MKCONF} +fi echo "" >> ${TARGET_MKCONF} echo "" >> ${BOOTSTRAP_MKCONF} -- cgit v1.2.3