Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2014 09:17:42 +0000 (UTC)
From:      Nick Hibma <n_hibma@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r275180 - head/tools/tools/nanobsd
Message-ID:  <201411270917.sAR9Hg4s014197@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: n_hibma
Date: Thu Nov 27 09:17:42 2014
New Revision: 275180
URL: https://svnweb.freebsd.org/changeset/base/275180

Log:
  clean_build is not always done (*), so move the mkdir to the first step
  that needs it and is always done: make.conf build.
  
  (*) In our build environment we actually never do a clean build unless
  instructed to do so, to make sure we do not accidentally delete the
  built world when on a tight schedule.

Modified:
  head/tools/tools/nanobsd/nanobsd.sh

Modified: head/tools/tools/nanobsd/nanobsd.sh
==============================================================================
--- head/tools/tools/nanobsd/nanobsd.sh	Thu Nov 27 08:41:31 2014	(r275179)
+++ head/tools/tools/nanobsd/nanobsd.sh	Thu Nov 27 09:17:42 2014	(r275180)
@@ -213,13 +213,14 @@ clean_build ( ) (
 		chflags -R noschg ${MAKEOBJDIRPREFIX}/
 		nano_rm -r ${MAKEOBJDIRPREFIX}/
 	fi
-	mkdir -p ${MAKEOBJDIRPREFIX}
-	printenv > ${MAKEOBJDIRPREFIX}/_.env
 )
 
 make_conf_build ( ) (
 	pprint 2 "Construct build make.conf ($NANO_MAKE_CONF_BUILD)"
 
+	mkdir -p ${MAKEOBJDIRPREFIX}
+	printenv > ${MAKEOBJDIRPREFIX}/_.env
+
 	echo "${CONF_WORLD}" > ${NANO_MAKE_CONF_BUILD}
 	echo "${CONF_BUILD}" >> ${NANO_MAKE_CONF_BUILD}
 )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411270917.sAR9Hg4s014197>