[U-Boot] [PATCH 1/3] MAKEALL: fix awk warning message
Masahiro Yamada
yamada.m at jp.panasonic.com
Thu Oct 17 09:37:40 CEST 2013
If you do `./MAKEALL -M ` or `./MAKEALL -m`
GNU awk would display warnings like follows:
awk: warning: escape sequence `\ ' treated as plain ` '
In the first place, we do not explicitly set the field separator.
Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
---
See line 163 of ./MAKEALL
SELECTED=$(awk '('"$FILTER"') { print $7 }' boards.cfg)
We already use awk without specifiying FS.
MAKEALL | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MAKEALL b/MAKEALL
index 93c0b3f..0d7893b 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 '\$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 '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
if [ -z "${line}" ]; then
echo ""
return ;
--
1.8.1.2
More information about the U-Boot
mailing list