aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-11-19 01:49:53 -0600
committerRob Landley <rob@landley.net>2012-11-19 01:49:53 -0600
commit7f909bd163630a2ce710653e0fafb7bae7171745 (patch)
treec571f2baae1faf85e239338ec875cdb615c49583 /scripts
parent6c62448f72ed9fc2b6a59ee09735283c07060cdb (diff)
downloadtoybox-7f909bd163630a2ce710653e0fafb7bae7171745.tar.gz
Teach option parsing about [groups] of related options.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make.sh3
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} ]