Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2017 19:13:29 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319862 - head/share/mk
Message-ID:  <201706121913.v5CJDTXJ045618@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Mon Jun 12 19:13:29 2017
New Revision: 319862
URL: https://svnweb.freebsd.org/changeset/base/319862

Log:
  META_MODE: Show .ERROR_CMD in error.
  
  This uses a hack to get the CMD from the meta file rather than
  .ERROR_CMD since bmake currently blanks the value for non-jobs
  mode.
  
  Reviewed by:	sjg (indirectly)
  MFC after:	1 week
  Sponsored by:	Dell EMC Isilon

Modified:
  head/share/mk/local.sys.mk

Modified: head/share/mk/local.sys.mk
==============================================================================
--- head/share/mk/local.sys.mk	Mon Jun 12 18:44:14 2017	(r319861)
+++ head/share/mk/local.sys.mk	Mon Jun 12 19:13:29 2017	(r319862)
@@ -13,7 +13,9 @@ MAKE_PRINT_VAR_ON_ERROR += \
 	.MAKE.MODE
 .endif
 
+_ERROR_CMD=${sed -n '/^CMD/s,^CMD ,,p' ${.ERROR_META_FILE}:L:sh}
 MAKE_PRINT_VAR_ON_ERROR+= \
+	_ERROR_CMD \
 	.CURDIR \
 	.MAKE \
 	.OBJDIR \



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