aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2022-07-19 11:42:08 -0500
committerRob Landley <rob@landley.net>2022-07-19 11:42:08 -0500
commit2bf62c7c08ca9f2ccb873207ee98af825b814812 (patch)
tree35364b4aaba06d38b25e532f73922f979e68af2e /scripts
parent297a9b4b79e76751cf4a1cfc3c333995073b37a8 (diff)
downloadtoybox-2bf62c7c08ca9f2ccb873207ee98af825b814812.tar.gz
Move example commands from "make list" to "make list_example".
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh10
-rw-r--r--scripts/help.txt1
2 files changed, 6 insertions, 5 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index cb85452f..52a9c259 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -73,8 +73,7 @@ toys()
$SED -En 's/([^:]*):.*(OLD|NEW)TOY\( *([a-zA-Z][^,]*) *,.*/\1:\3/p'
}
-WORKING=
-PENDING=
+WORKING= PENDING= EXAMPLE=
toys toys/*/*.c | (
while IFS=":" read FILE NAME
do
@@ -83,12 +82,13 @@ do
[ "$NAME" == sh ] && FILE="toys/*/*.c"
echo -e "$NAME: $FILE *.[ch] lib/*.[ch]\n\tscripts/single.sh $NAME\n"
echo -e "test_$NAME:\n\tscripts/test.sh $NAME\n"
- [ "${FILE/pending//}" != "$FILE" ] &&
- PENDING="$PENDING $NAME" ||
+ [ "${FILE/example//}" != "$FILE" ] && EXAMPLE="$EXAMPLE $NAME" ||
+ [ "${FILE/pending//}" != "$FILE" ] && PENDING="$PENDING $NAME" ||
WORKING="$WORKING $NAME"
done &&
echo -e "clean::\n\t@rm -f $WORKING $PENDING" &&
echo -e "list:\n\t@echo $(echo $WORKING | tr ' ' '\n' | sort | xargs)" &&
-echo -e "list_pending:\n\t@echo $(echo $PENDING | tr ' ' '\n' | sort | xargs)" &&
+echo -e "list_example:\n\t@echo $(echo $EXAMPLE | tr ' ' '\n' | sort | xargs)"&&
+echo -e "list_pending:\n\t@echo $(echo $PENDING | tr ' ' '\n' | sort | xargs)"&&
echo -e ".PHONY: $WORKING $PENDING" | $SED 's/ \([^ ]\)/ test_\1/g'
) > .singlemake
diff --git a/scripts/help.txt b/scripts/help.txt
index 906c579f..feca0a8d 100644
--- a/scripts/help.txt
+++ b/scripts/help.txt
@@ -1,6 +1,7 @@
toybox - Build toybox.
COMMANDNAME - Build individual toybox command as a standalone binary.
list - List COMMANDNAMEs you can build standalone.
+ list_example - List example commands (often used by the test suite)
list_pending - List unfinished COMMANDNAMEs out of toys/pending.
change - Build each command standalone under change/.
baseline - Create toybox_old for use by bloatcheck.