aboutsummaryrefslogtreecommitdiff
path: root/scripts/genconfig.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-12-10 21:08:42 -0600
committerRob Landley <rob@landley.net>2012-12-10 21:08:42 -0600
commitb1c002ac55339d7b7ec53214397f841c56cf6488 (patch)
tree00afa98de6c82ef6cc5795a7c6ca4424f678a18d /scripts/genconfig.sh
parentb9bde7b403a8dcf8e8a1417383bb70816a7c1958 (diff)
downloadtoybox-b1c002ac55339d7b7ec53214397f841c56cf6488.tar.gz
Add stat submission to new "pending" directory, along with infrastructure to support pending.
Diffstat (limited to 'scripts/genconfig.sh')
-rwxr-xr-xscripts/genconfig.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 4337666c..dedfde4d 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -29,11 +29,13 @@ genconfig()
# and capitalization in the menu
for j in toys/*/README
do
+ DIR="$(dirname "$j")"
+
+ [ $(ls "$DIR" | wc -l) -lt 2 ] && continue
+
echo "menu \"$(head -n 1 $j)\""
echo
- DIR="$(dirname "$j")"
-
# extract config stanzas from each source file, in alphabetical order
for i in $(ls -1 $DIR/*.c)
do