aboutsummaryrefslogtreecommitdiff
path: root/scripts/make.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-08-12 01:48:27 -0500
committerRob Landley <rob@landley.net>2013-08-12 01:48:27 -0500
commitdd2d23930241a30a8eb4f0fc9d70bc86c4a6cb6e (patch)
tree54cb80319ccbe3b172d7ecb2659af31321ea7c7b /scripts/make.sh
parent9d44ab3f179e0e914abc1d6edc79a22c265baaa9 (diff)
downloadtoybox-dd2d23930241a30a8eb4f0fc9d70bc86c4a6cb6e.tar.gz
More grep cleanup, and make OPTSTR_command macros for use with OLDTOY()
Diffstat (limited to 'scripts/make.sh')
-rwxr-xr-xscripts/make.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/make.sh b/scripts/make.sh
index e2853bb3..add532b8 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -54,6 +54,8 @@ echo "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' \
+ generated/newtoys.h > generated/oldtoys.h
# Extract list of command letters from processed header file