Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2017 16:38:20 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326535 - head/tools/boot
Message-ID:  <201712041638.vB4GcK0q087528@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Mon Dec  4 16:38:20 2017
New Revision: 326535
URL: https://svnweb.freebsd.org/changeset/base/326535

Log:
  Just use the last line of the output from getting .OBJDIR. The
  buildenv target prints other stuff too that needs to be ignored.
  
  Sponsored by: Netflix

Modified:
  head/tools/boot/universe.sh

Modified: head/tools/boot/universe.sh
==============================================================================
--- head/tools/boot/universe.sh	Mon Dec  4 15:28:07 2017	(r326534)
+++ head/tools/boot/universe.sh	Mon Dec  4 16:38:20 2017	(r326535)
@@ -26,7 +26,7 @@ dobuild()
     local opt=$3
 
     echo -n "Building $ta ${opt} ... "
-    objdir=$(make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make -V .OBJDIR")
+    objdir=$(make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make -V .OBJDIR" | tail -1)
     rm -rf ${objdir}
     if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make clean cleandepend cleandir obj depend"  \
 	 > $lf 2>&1; then



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