svn commit: r319862 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Mon Jun 12 19:13:31 UTC 2017


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 \


More information about the svn-src-head mailing list