diff options
author | obache <obache> | 2010-08-30 06:21:49 +0000 |
---|---|---|
committer | obache <obache> | 2010-08-30 06:21:49 +0000 |
commit | 374049ac28ae2c2160c4f7135ae198442b60abd5 (patch) | |
tree | 176e47891926a3892efc8e8ef060775c7755c091 | |
parent | 899d553b2eb8bb86840c39ecaff28a3d0095aa73 (diff) | |
download | pkgsrc-374049ac28ae2c2160c4f7135ae198442b60abd5.tar.gz |
Set WRKOBJDIR=${workdir}/pkgsrc to target mk.conf if --workdir is specified.
-rwxr-xr-x | bootstrap/bootstrap | 10 |
1 files changed, 7 insertions, 3 deletions
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} |