Skip to contentSkip to conversation

MAKEALL: allow regex matches for -s option

PATCH New Stephen Warren 2 participants 2 messages Mar 27, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 MAKEALL: allow regex matches for -s option

From: Stephen Warren <[email protected]>

This allows:

MAKEALL -s tegra

to replace:

MAKEALL -s tegra20 -s tegra30 -s tegra114

The following also works:

MAKEALL -s tegra -s omap

---
v2: Modified the commit description marginally to s/tegra*/tegra/ in the first example MAKEALL command; it's a regex match so a substring, so the
* isn't needed. Also add the dual tegra/omap example command.

 MAKEALL |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
MAKEALL +2 -2
index c1d8957..91fa495 100755
@@ -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 ;;
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 MAKEALL: allow regex matches for -s option

Quoted 12 lines · Stephen Warren

From: Stephen Warren <[email protected]>

This allows:

MAKEALL -s tegra

to replace:

MAKEALL -s tegra20 -s tegra30 -s tegra114

The following also works:

Quoted 7 lines

MAKEALL -s tegra -s omap

---
v2: Modified the commit description marginally to s/tegra*/tegra/ in the first example MAKEALL command; it's a regex match so a substring, so the
* isn't needed. Also add the dual tegra/omap example command.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130327/7c63989a/attachment.pgp>