[U-Boot] [PATCH] MAKEALL: fix awk warning

Andreas Bießmann andreas.devel at googlemail.com
Wed Nov 6 13:19:12 CET 2013


This fixes following warning:

---8<---
abiessmann at punisher % ./MAKEALL -m at91rm9200ek
at91rm9200ek:awk: warning: escape sequence `\ ' treated as plain ` '
awk: warning: escape sequence `\ ' treated as plain ` '
andreas.devel at gmail.com
--->8---

Signed-off-by: Andreas Bießmann <andreas.devel at googlemail.com>
Cc: Albert Aribaud <albert.u.boot at aribaud.net>
---
tested with gawk 4.0.1 here

 MAKEALL |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index a9253d3..b03f87b 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -518,7 +518,7 @@ get_target_location() {
 	local vendor=""
 
 	# Automatic mode
-	local line=`awk -F '\ +' '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
+	local line=`awk -F ' +' '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
 	if [ -z "${line}" ] ; then echo "" ; return ; fi
 
 	set ${line}
@@ -556,7 +556,7 @@ get_target_location() {
 get_target_maintainers() {
 	local name=`echo $1 | cut -d : -f 3`
 
-	local line=`awk -F '\ +' '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
+	local line=`awk -F ' +' '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
 	if [ -z "${line}" ]; then
 		echo ""
 		return ;
-- 
1.7.10.4



More information about the U-Boot mailing list