svn commit: r334791 - head/share/mk
Alexey Dokuchaev
danfe at FreeBSD.org
Thu Jun 7 16:44:20 UTC 2018
On Thu, Jun 07, 2018 at 04:16:22PM +0000, Bryan Drewery wrote:
> New Revision: 334791
> URL: https://svnweb.freebsd.org/changeset/base/334791
>
> Log:
> Stop using head(1) which is not available in installworld.
> ...
> @@ -49,7 +49,7 @@ ${var}= ${${var}.${${X_}_ld_hash}}
>
> .if ${ld} == "LD" || (${ld} == "XLD" && ${XLD} != ${LD})
> .if !defined(${X_}LINKER_TYPE) || !defined(${X_}LINKER_VERSION)
> -_ld_version!= (${${ld}} --version || echo none) | head -n 1
> +_ld_version!= (${${ld}} --version || echo none) | sed -n '1,1p'
You don't need to specify the range actually, and the quotes. Simple
`sed -n 1p' looks shorter and does not raise unnecessary questions.
./danfe
More information about the svn-src-all
mailing list