infra: pkg-utils.mk replace "echo -e" with printf
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Wed, 21 May 2014 08:25:10 +0000 (10:25 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 21 May 2014 08:45:15 +0000 (10:45 +0200)
printf is POSIX-compliant, echo -e is not.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-utils.mk

index da3f0fc3186544b0da27a8e2b05e849655a67429..c627a6485e07a5e77bbfa9cd0e4343d0906c3157 100644 (file)
@@ -110,8 +110,8 @@ 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):" \
-               "$(2)\n$(LEGAL_INFO_SEPARATOR)\n\n" >>$(LEGAL_LICENSES_TXT_$(3))
+       printf "$(LEGAL_INFO_SEPARATOR)\n\t$(1):\
+               $(2)\n$(LEGAL_INFO_SEPARATOR)\n\n\n" >>$(LEGAL_LICENSES_TXT_$(3))
 endef
 
 define legal-license-nofiles # pkg, {HOST|TARGET}