Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2017 21:48:42 +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: r320030 - head/share/mk
Message-ID:  <201706162148.v5GLmgH3080717@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri Jun 16 21:48:42 2017
New Revision: 320030
URL: https://svnweb.freebsd.org/changeset/base/320030

Log:
  WITH_META_MODE: End each ERROR_CMD CMD line with ';'.
  
  This makes it easier to debug multi-line command failures.
  
  X-MFC-With:	r319862
  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	Fri Jun 16 21:40:44 2017	(r320029)
+++ head/share/mk/local.sys.mk	Fri Jun 16 21:48:42 2017	(r320030)
@@ -13,7 +13,7 @@ MAKE_PRINT_VAR_ON_ERROR += \
 	.MAKE.MODE
 .endif
 
-_ERROR_CMD_EXEC=	${sed -n '/^CMD/s,^CMD ,,p' ${.ERROR_META_FILE}:L:sh}
+_ERROR_CMD_EXEC=	${sed -n '/^CMD/s,^CMD \(.*\),\1;,p' ${.ERROR_META_FILE}:L:sh}
 _ERROR_CMD=		${!empty(.ERROR_META_FILE):?${_ERROR_CMD_EXEC}:.PHONY}
 MAKE_PRINT_VAR_ON_ERROR+= \
 	_ERROR_CMD \



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