From 7f909bd163630a2ce710653e0fafb7bae7171745 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 19 Nov 2012 01:49:53 -0600 Subject: Teach option parsing about [groups] of related options. --- scripts/make.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/make.sh b/scripts/make.sh index 6c1672e3..f9fa0a40 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -73,7 +73,8 @@ function getglobals() -e "s/.*TOY($NAME"',[ \t]*"\([^"]*\)"[ \t]*,.*)/\1/' \ -e 't keep;d;:keep' -e 's/^[<>=][0-9]//' -e 's/[?&^]//' \ -e 't keep' -e 's/[><=][0-9][0-9]*//g' -e 's/+.//g' \ - -e 's/([^)]*)//g' -e 's/[-?^:&#|@*]//g' -e 'p')" + -e 's/([^)]*)//g' -e 's/\[[^]]*\]//g' -e 's/[-?^:&#|@*]//g' \ + -e 'p')" echo "#ifdef FOR_${NAME}" X=0 while [ $X -lt ${#FLAGS} ] -- cgit v1.2.3