diff options
author | Rob Landley <rob@landley.net> | 2013-09-22 03:37:39 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-09-22 03:37:39 -0500 |
commit | 75a18150dc75de8f9ac9f0cc97f0630e0e7c168e (patch) | |
tree | d2058b2ed87eb5e606bc937577eb4568efa7f859 /scripts | |
parent | b911d4dd15369a049f27b872fa0982fb83105d33 (diff) | |
download | toybox-75a18150dc75de8f9ac9f0cc97f0630e0e7c168e.tar.gz |
Fix generated/oldtoys.h to contain option strings with USE() macros in them.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh index ab4babdb..f5c4c273 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -56,7 +56,7 @@ echo "USE_TOYBOX(NEWTOY(toybox, NULL, TOYFLAG_STAYROOT))" > generated/newtoys.h sed -n -e 's/^USE_[A-Z0-9_]*(/&/p' toys/*/*.c \ | sed 's/\(.*TOY(\)\([^,]*\),\(.*\)/\2 \1\2,\3/' | sort -k 1,1 \ | sed 's/[^ ]* //' >> generated/newtoys.h -sed -n 's/.*(NEWTOY(\([^,]*\), *\("[^,]*"\) *,.*/#define OPTSTR_\1\t\2/p' \ +sed -n -e 's/.*(NEWTOY(\([^,]*\), *\(\("[^"]*"[^,]*\)*\),.*/#define OPTSTR_\1\t\2/p' \ generated/newtoys.h > generated/oldtoys.h # Extract list of command letters from processed header file |