Source-Changes-HG archive

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

[src/trunk]: src In rumptest, create obj dirs before distrib dirs. Fail if d...



details:   https://anonhg.NetBSD.org/src/rev/0e5295557c46
branches:  trunk
changeset: 750757:0e5295557c46
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jan 13 02:18:25 2010 +0000

description:
In rumptest, create obj dirs before distrib dirs.  Fail if distrib dir
creation fails.

per clue-by-4 from mrg

diffstat:

 build.sh |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 6043ca87a76a -r 0e5295557c46 build.sh
--- a/build.sh  Wed Jan 13 02:17:12 2010 +0000
+++ b/build.sh  Wed Jan 13 02:18:25 2010 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.226 2009/12/26 14:13:08 mbalmer Exp $
+#      $NetBSD: build.sh,v 1.227 2010/01/13 02:18:25 pooka Exp $
 #
 # Copyright (c) 2001-2009 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1352,7 +1352,7 @@
        eval cat <<EOF ${makewrapout}
 #! ${HOST_SH}
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.226 2009/12/26 14:13:08 mbalmer Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.227 2010/01/13 02:18:25 pooka Exp $
 # with these arguments: ${_args}
 #
 
@@ -1559,10 +1559,12 @@
        [ "${1}" != "rumptest" ] && bomb 'build.sh rump not yet functional. ' \
            'did you mean "rumptest"?'
 
+       # create obj and distrib dirs
+       [ "${MKOBJDIRS}" = "no" ] || make_in_dir "${NETBSDSRCDIR}/sys/rump" obj
+       ${runcmd} "${makewrapper}" ${parallel} do-distrib-dirs \
+           || bomb 'could not create distrib-dirs'
+
        [ "${MKUPDATE}" = "no" ] && doclean="cleandir"
-       [ "${MKOBJDIRS}" = "no" ] || doobjs="obj"
-       ${runcmd} "${makewrapper}" ${parallel} do-distrib-dirs
-
        targlist="${doclean} ${doobjs} dependall install"
        setmakeenv NORUMPUSER 1
        # optimize: for test we build only static libs (3x test speedup)



Home | Main Index | Thread Index | Old Index