Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2017 14:22:36 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438169 - head/Mk
Message-ID:  <201704101422.v3AEMafd071762@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Apr 10 14:22:36 2017
New Revision: 438169
URL: https://svnweb.freebsd.org/changeset/ports/438169

Log:
  - Make warning, dev warning, and dev error display consistent and more readable:
    - Split all messages with a newline
    - Run all messages through fmt to fit them into 80 columns
  
  Approved by:	portmgr (mat)
  Differential Revision:	D9216

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Mon Apr 10 14:19:25 2017	(r438168)
+++ head/Mk/bsd.port.mk	Mon Apr 10 14:22:36 2017	(r438169)
@@ -5090,10 +5090,11 @@ install-desktop-entries:
 WARNING_WAIT?=	10
 show-warnings:
 	@${ECHO_MSG} "/!\\ WARNING /!\\"
+	@${ECHO_MSG}
 .for m in ${WARNING}
-	@${ECHO_MSG} "${m}"
-.endfor
+	@${ECHO_MSG} "${m}" | ${FMT} 75 79
 	@${ECHO_MSG}
+.endfor
 	@sleep ${WARNING_WAIT}
 .endif
 
@@ -5104,9 +5105,9 @@ show-dev-warnings:
 	@${ECHO_MSG} "/!\\ ${PKGNAME}: Makefile warnings, please consider fixing /!\\"
 	@${ECHO_MSG}
 .for m in ${DEV_WARNING}
-	@${ECHO_MSG} ${m}
-.endfor
+	@${ECHO_MSG} ${m} | ${FMT} 75 79
 	@${ECHO_MSG}
+.endfor
 .if defined(DEV_WARNING_FATAL)
 	@${FALSE}
 .else
@@ -5119,9 +5120,9 @@ show-dev-errors:
 	@${ECHO_MSG} "/!\\ ${PKGNAME}: Makefile errors /!\\"
 	@${ECHO_MSG}
 .for m in ${DEV_ERROR}
-	@${ECHO_MSG} "${m}"
-.endfor
+	@${ECHO_MSG} "${m}" | ${FMT} 75 79
 	@${ECHO_MSG}
+.endfor
 	@${FALSE}
 .endif
 .endif #DEVELOPER



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