[Buildroot] [PATCH 4/4] infra: pkg-utils.mk replace "echo -en" with printf

Peter Korsgaard jacmet at uclibc.org
Fri May 16 20:40:57 UTC 2014


>>>>> "Maxime" == Maxime Hadjinlian <maxime.hadjinlian at gmail.com> writes:

 > printf is POSIX-compliant, echo -e/n is not.
 > Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
 > ---
 >  package/pkg-utils.mk | 2 +-
 >  1 file changed, 1 insertion(+), 1 deletion(-)

 > diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
 > index da3f0fc..f299e55 100644
 > --- a/package/pkg-utils.mk
 > +++ b/package/pkg-utils.mk
 > @@ -110,7 +110,7 @@ define legal-manifest # pkg, version, license, license-files, source, {HOST|TARG
 >  endef
 
 >  define legal-license-header # pkg, license-file, {HOST|TARGET}
 > -	echo -e "$(LEGAL_INFO_SEPARATOR)\n\t$(1):" \
 > +	printf "$(LEGAL_INFO_SEPARATOR)\n\t$(1):" \
 >  		"$(2)\n$(LEGAL_INFO_SEPARATOR)\n\n" >>$(LEGAL_LICENSES_TXT_$(3))

Same as for acpid. Are you sure the missing newline doesn't matter?

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list