From 2bf62c7c08ca9f2ccb873207ee98af825b814812 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 19 Jul 2022 11:42:08 -0500 Subject: Move example commands from "make list" to "make list_example". --- scripts/genconfig.sh | 10 +++++----- scripts/help.txt | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'scripts') 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. -- cgit v1.2.3