Mercurial > hg > toybox
view generated/README.txt @ 293:6baa13382880
Sort was including the trailing comma and getting the order wrong.
(Specifically, it was comparing "sh," with "sha1sum," and putting sha1sum first
in generated/newtoys.h so the binary search wasn't finding sha1sum. Alas, you
can't feed separate beginning and ending delimiters to "sort -t". The fix is
to copy the appropriate field out with sed, duplicate it at the start of the
string where it's easy to compare, and then remove it again with a second
sed after the sort.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 12 May 2008 01:23:19 -0500 |
parents | 7cde22266e65 |
children |
line wrap: on
line source
All the files in this directory except this README are generated by the build. (See scripts/make.sh) config.h: CFG_COMMAND and USE_COMMAND() macros set by menuconfig via .config. Config.in: Kconfig entries for each command. Included by top level Config.in. The help text in here is used to generated help.h help.h: Help text strings for use by "help" command. Building this file requires python on the host system, so the prebuilt file is shipped in the build tarball to avoid requiring python to build toybox. newtoys.h: List of NEWTOY() or OLDTOY() macros for all available commands. Associates command_main() functions with command names, provides option string for command line parsing (see lib/args.c), specifies where to install each command and whether toysh should fork before calling it.