diff options
author | Rob Landley <rob@landley.net> | 2012-11-19 01:49:53 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-11-19 01:49:53 -0600 |
commit | 7f909bd163630a2ce710653e0fafb7bae7171745 (patch) | |
tree | c571f2baae1faf85e239338ec875cdb615c49583 /scripts | |
parent | 6c62448f72ed9fc2b6a59ee09735283c07060cdb (diff) | |
download | toybox-7f909bd163630a2ce710653e0fafb7bae7171745.tar.gz |
Teach option parsing about [groups] of related options.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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} ] |