[Toybox] Time is an illusion, lunchtime doubly so...

Rob Landley rob at landley.net
Fri Jan 31 10:14:16 PST 2014


This morning I got the sflate code (gzip/zlib/zip) collated and merged. I
have more cleanups planned but that'll have to wait around dayjob.

Previously I got the help text processing code upgraded to do reasonably
proper collation. I need to upgrade the docs to talk about it, but
basically the help entries starting with "usage:" lines referring to the
same command name get collated in the order they occur in the source files,
with the last entry inserted into the one before that repeatedly until
there's just one. For the usage lines an initial [-abc] option block in
each one gets merged and sorted, and the remaining usage: for the later
entry gets inserted at the beginning. (This is because the first one tends
to have the non-option arguments at the end, and we want those to stay at
the end.)

Each help entry can also have a block of option description lines, each
line starting with a dash (but not two dashes) and coming after a blank
line. Those get merged and sorted alphabetically. The blocks of text before
that are collated, and the blocks of text after that are collated.

What I'm not yet handling is stuff like:

  -Q   Separate saucer section. Must do this in first
       episode or budget cuts may remove feature.

Partly because I'm not sure what the rules should be yet. (Probably
counting whitespace at the edge to detect groups. Might require a trailing
blank line to end a block, current code doesn't.)

Anyway, the whole thing's overdue for a release, which as always is driven
by an aboriginal release which was driven by a new kernel version. (They
broke powerpc with a new gcc attribute the old toolchain doesn't parse, I
need to find a couple non-exhausted hours to track it down and #ifdef it
out semi-cleanly.)

I checked in two of Isaac's changes, the third needs work. I know what to
do, just haven't had a chance to do it yet. Work eats my life, as usual.
Speaking of which, I should actually eat food before lunch is over...

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140131/b3a7898f/attachment.htm>


More information about the Toybox mailing list