From 05b7529c1e36fb527113ddcfde5b8513ec2c66d1 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 14 Feb 2016 14:04:21 -0600 Subject: Add "make list", rename make working->list_working and pending->list_pending, and filter out commands that aren't nofork but aren't installed either (toyflags 0, I.E. recognized aliases like "-sh" called from login). --- scripts/genconfig.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index e53d3607..c0ac56d2 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh @@ -123,7 +123,7 @@ genconfig > generated/Config.in || rm generated/Config.in # Find names of commands that can be built standalone in these C files toys() { - grep 'TOY(.*)' "$@" | grep -v TOYFLAG_NOFORK | \ + grep 'TOY(.*)' "$@" | grep -v TOYFLAG_NOFORK | grep -v "0))" | \ sed -rn 's/([^:]*):.*(OLD|NEW)TOY\( *([a-zA-Z][^,]*) *,.*/\1:\3/p' } @@ -140,8 +140,10 @@ do WORKING="$WORKING $NAME" done > .singlemake && echo -e "clean::\n\trm -f $WORKING $PENDING" >> .singlemake && -echo -e "working:\n\t@echo $(echo $WORKING | tr ' ' '\n' | sort | xargs)" \ +echo -e "list:\n\t@echo $(echo $WORKING $PENDING | tr ' ' '\n' | sort | xargs)"\ >> .singlemake && -echo -e "pending:\n\t@echo $(echo $PENDING | tr ' ' '\n' | sort | xargs)" \ +echo -e "list_working:\n\t@echo $(echo $WORKING | tr ' ' '\n' | sort | xargs)" \ + >> .singlemake && +echo -e "list_pending:\n\t@echo $(echo $PENDING | tr ' ' '\n' | sort | xargs)" \ >> .singlemake ) -- cgit v1.2.3