Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Set BSDSRCDIR and NETBSDSRCDIR in the make wrapper, so we al...



details:   https://anonhg.NetBSD.org/src/rev/27f0598dd838
branches:  trunk
changeset: 552158:27f0598dd838
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sat Sep 20 10:14:41 2003 +0000

description:
Set BSDSRCDIR and NETBSDSRCDIR in the make wrapper, so we always get the
right source directories (in case they are defined in mk.conf using '?=').

diffstat:

 build.sh |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r ab18dd65f167 -r 27f0598dd838 build.sh
--- a/build.sh  Sat Sep 20 10:11:27 2003 +0000
+++ b/build.sh  Sat Sep 20 10:14:41 2003 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.115 2003/09/10 18:05:52 jmmv Exp $
+#      $NetBSD: build.sh,v 1.116 2003/09/20 10:14:41 jmmv Exp $
 #
 # Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -139,6 +139,11 @@
        mkdir "${tmpdir}" || bomb "Cannot mkdir: ${tmpdir}"
        trap "cd /; rm -r -f \"${tmpdir}\"" 0
        results="${tmpdir}/build.sh.results"
+
+       # Set source directories
+       #
+       setmakeenv BSDSRCDIR "${TOP}"
+       setmakeenv NETBSDSRCDIR "${TOP}"
 }
 
 getarch()
@@ -802,7 +807,7 @@
        eval cat <<EOF ${makewrapout}
 #! /bin/sh
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.115 2003/09/10 18:05:52 jmmv Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.116 2003/09/20 10:14:41 jmmv Exp $
 #
 
 EOF



Home | Main Index | Thread Index | Old Index