aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-04-23 17:23:09 -0500
committerRob Landley <rob@landley.net>2014-04-23 17:23:09 -0500
commitf9070f36adfaf1b5c175768fb7169b9ff79da21d (patch)
tree84df08b9ceaf1b6ac1d31a26cf4f06b199ffca9f /scripts
parent5fe77cf9ed586a84c5ccd289154d0b543d2b4949 (diff)
downloadtoybox-f9070f36adfaf1b5c175768fb7169b9ff79da21d.tar.gz
Add example directory, move hello.c into it, add skeleton.c to demonstrate more complciated stuff (multiple commands per file, etc), and have genconfig.sh sort backwards so posix is first and example last in menuconfig.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 4425328d..07fec2c1 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -43,9 +43,8 @@ EOF
genconfig()
{
- # I could query the directory here, but I want to control the order
- # and capitalization in the menu
- for j in toys/*/README
+ # Reverse sort puts posix first, examples last.
+ for j in $(ls toys/*/README | sort -r)
do
DIR="$(dirname "$j")"