svn commit: r300525 - head/share/mk
Bryan Drewery
bdrewery at FreeBSD.org
Mon May 23 17:11:34 UTC 2016
Author: bdrewery
Date: Mon May 23 17:11:32 2016
New Revision: 300525
URL: https://svnweb.freebsd.org/changeset/base/300525
Log:
Use sed(1) to determine cc version rather than tail(1) since it is already in ITOOLS.
This fixes 'tail: not found' warnings in installworld after r300351.
Sponsored by: EMC / Isilon Storage Division
Modified:
head/share/mk/bsd.compiler.mk
Modified: head/share/mk/bsd.compiler.mk
==============================================================================
--- head/share/mk/bsd.compiler.mk Mon May 23 17:06:46 2016 (r300524)
+++ head/share/mk/bsd.compiler.mk Mon May 23 17:11:32 2016 (r300525)
@@ -156,7 +156,7 @@ ${X_}COMPILER_VERSION!=echo "${_v:M[1-9]
.undef _v
.endif
.if !defined(${X_}COMPILER_FREEBSD_VERSION)
-${X_}COMPILER_FREEBSD_VERSION!= { echo "__FreeBSD_cc_version" | ${${cc}} -E - 2>/dev/null || echo __FreeBSD_cc_version; } | tail -n 1
+${X_}COMPILER_FREEBSD_VERSION!= { echo "__FreeBSD_cc_version" | ${${cc}} -E - 2>/dev/null || echo __FreeBSD_cc_version; } | sed -n '$$p'
# If we get a literal "__FreeBSD_cc_version" back then the compiler
# is a non-FreeBSD build that doesn't support it or some other error
# occurred.
More information about the svn-src-all
mailing list