]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MAKEALL: fix awk warning message
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 21 Oct 2013 02:11:25 +0000 (11:11 +0900)
committerTom Rini <trini@ti.com>
Fri, 8 Nov 2013 14:38:24 +0000 (09:38 -0500)
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@jp.panasonic.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
MAKEALL

diff --git a/MAKEALL b/MAKEALL
index a9253d3490a3d5cf32526c91b20800b1fcc5b715..b03522957d2e5f0505fc5924c5a318779d86d2c4 100755 (executable)
--- 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 ;