Date: Thu, 31 Dec 2015 21:01:07 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r293006 - projects/clang380-import/share/mk Message-ID: <201512312101.tBVL173w046586@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Thu Dec 31 21:01:06 2015 New Revision: 293006 URL: https://svnweb.freebsd.org/changeset/base/293006 Log: For determining the compiler version, quote the string to be echo'd, otherwise the command might fail. This is because clang -v now results in the following: FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn) The second "3.8.8svn)" string tripped up the shell command. Modified: projects/clang380-import/share/mk/bsd.compiler.mk Modified: projects/clang380-import/share/mk/bsd.compiler.mk ============================================================================== --- projects/clang380-import/share/mk/bsd.compiler.mk Thu Dec 31 20:52:39 2015 (r293005) +++ projects/clang380-import/share/mk/bsd.compiler.mk Thu Dec 31 21:01:06 2015 (r293006) @@ -138,7 +138,7 @@ COMPILER_TYPE:= clang . endif .endif .if !defined(COMPILER_VERSION) -COMPILER_VERSION!=echo ${_v:M[1-9].[0-9]*} | awk -F. '{print $$1 * 10000 + $$2 * 100 + $$3;}' +COMPILER_VERSION!=echo "${_v:M[1-9].[0-9]*}" | awk -F. '{print $$1 * 10000 + $$2 * 100 + $$3;}' .endif .undef _v .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512312101.tBVL173w046586>