aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-12-08 21:10:10 -0600
committerRob Landley <rob@landley.net>2012-12-08 21:10:10 -0600
commitaa777fe07df104e8d33b958fb4e19c81245ac9a3 (patch)
tree13477b526de55640db4a6ec90f6c52584e1f4c2f
parent37de8ed2aac771c118702b2315ccac7e02ecb729 (diff)
downloadtoybox-aa777fe07df104e8d33b958fb4e19c81245ac9a3.tar.gz
Add README file to each toys/ directory, teach build infrastructure to get fancy name from that. This means adding new directories shouldn't require touching build scripts.
-rwxr-xr-xscripts/genconfig.sh9
-rw-r--r--toys/lsb/README7
-rw-r--r--toys/other/README13
-rw-r--r--toys/posix/README5
4 files changed, 29 insertions, 5 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index accf0dba..4337666c 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -4,7 +4,6 @@
# before menuconfig. (It's called again from scripts/make.sh just to be sure.)
mkdir -p generated
-OUTFILE=generated/Config.in
source configure
@@ -28,15 +27,15 @@ genconfig()
{
# I could query the directory here, but I want to control the order
# and capitalization in the menu
- for j in Posix LSB Other
+ for j in toys/*/README
do
- echo "menu \"$j commands\""
+ echo "menu \"$(head -n 1 $j)\""
echo
- DIR=$(echo $j | tr A-Z a-z)
+ DIR="$(dirname "$j")"
# extract config stanzas from each source file, in alphabetical order
- for i in $(ls -1 toys/$DIR/*.c)
+ for i in $(ls -1 $DIR/*.c)
do
# Grab the config block for Config.in
echo "# $i"
diff --git a/toys/lsb/README b/toys/lsb/README
new file mode 100644
index 00000000..5381b8ac
--- /dev/null
+++ b/toys/lsb/README
@@ -0,0 +1,7 @@
+LSB commands
+
+Commands defined in the Linux Standard Base 4.1:
+http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/cmdbehav.html
+
+Downloadable as one big file from:
+http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic.html
diff --git a/toys/other/README b/toys/other/README
new file mode 100644
index 00000000..e16cd6f2
--- /dev/null
+++ b/toys/other/README
@@ -0,0 +1,13 @@
+Other commands
+
+These are commands not present in Posix or LSB.
+
+Most of them are necessary to provide a development environment capable of
+booting a system image and building Linux From Scratch under it.
+
+Tested with Aboriginal Linux system image and the lfs-bootstrap.hdc automated
+build control image for Linux From Scratch 6.8):
+
+ http://landley.net/aboriginal
+
+ http://landley.net/aboriginal/control-images
diff --git a/toys/posix/README b/toys/posix/README
new file mode 100644
index 00000000..b0d60078
--- /dev/null
+++ b/toys/posix/README
@@ -0,0 +1,5 @@
+Posix commands
+
+Commands defined in POSIX-2008, also known as the Single Unix
+Specification version 4, available online at
+http://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html