From: Stephen Warren Date: Tue, 5 Mar 2013 11:15:01 +0000 (+0000) Subject: MAKEALL: allow regex matches for -s option X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f32c08da82eed03d2d1a00f141f531db58330f93;p=u-boot.git MAKEALL: allow regex matches for -s option This allows: MAKEALL -s tegra to replace: MAKEALL -s tegra20 -s tegra30 -s tegra114 The following also works: MAKEALL -s tegra -s omap Signed-off-by: Stephen Warren --- diff --git a/MAKEALL b/MAKEALL index c1d8957256..91fa495ea7 100755 --- a/MAKEALL +++ b/MAKEALL @@ -104,9 +104,9 @@ while true ; do -s|--soc) # echo "Option SoC: argument \`$2'" if [ "$opt_s" ] ; then - opt_s="${opt_s%)} || \$6 == \"$2\")" + opt_s="${opt_s%)} || \$6 == \"$2\" || \$6 ~ /$2/)" else - opt_s="(\$6 == \"$2\")" + opt_s="(\$6 == \"$2\" || \$6 ~ /$2/)" fi SELECTED='y' shift 2 ;;