aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2014-04-15Probes for O_NOFOLLOW that compile and run something aren't compatible with ↵Rob Landley
cross compiling, so just #define it to 0 if it's not in fcntl.h where posix-2008 says.
2014-04-09_mkflags_ had an issue for generating FLAG_xxxx macros for long options.Ashwini Sharma
Only the first __long__ option, without any __short__ option had a proper flag value, rest all were defined to ZERO. Becaus the _flist_ was not moved to the next in this case.
2014-04-07generated/help.h is a lot easier to read with an extra newline between each ↵Rob Landley
help entry.
2014-03-19There are cases when the long options are of the format abc-def. In current ↵Ashwini Sharma
implementation FLAG_xxx macros are generated for long options too. with __-__ sign in the macro, it will generate errors. I am of the opinion that __-__ be converted to '_' for generating the FLAG_xxx macros and be used in the command. This will enable the user to 'abc-def', but be handled like 'abc_def' in code.
2014-03-11Factor out mkpathat.Rob Landley
2014-02-28Fix header file generation to not be confused by empty (but non-NULL) option ↵Rob Landley
string. You shouldn't use "" as an option string because a NULL allows toy_init() to avoid calling the option parsing logic entirely, which lets it drop out when nothing's using it (ala scripts/single.sh builds). That said, init.c is currently using a "" option string and a USE_ macro taking advantage of string concatenation may require a "" option config, so...
2014-02-24Put all FOR_xxx blocks after all CLEANUP_xxx in generated/flags.h so the ↵Rob Landley
usages don't have to be in alphabetical order.
2014-02-23CLEANUP transitions require all the generated/flags.h stanzas always be ↵Rob Landley
present (even for commands disabled in the config) to avoid undefined symbol errors referencing FLAG_ macros.
2014-02-21Update status page.Rob Landley
2014-02-16Make CLEANUP transitions work, so multiple NEWTOY() can exist in the same file.Rob Landley
Don't #undefine TT in the CLEANUP blocks of generated/flags.h, and #ifdef around the other TT definition. That way you can put a union at the start of your GLOBALS() with the arguments filled out by option parsing, and then have multiple main() functions with different argumetns and different FLAG_x macros, while sharing infrastructure that's not under lib.
2014-02-16Various cleanups found by Tom Sparrow's static analysis.Rob Landley
2014-02-08Fix segfault with single build of a command with bare longopts.Rob Landley
2014-02-04Use right config for single builds.Rob Landley
2014-01-29More elaborate help text collating logic.Rob Landley
2014-01-20Collate usage: lines in help text.Rob Landley
2014-01-15Help text, collate usage blocks (badly).Rob Landley
2014-01-03Replace python help converter with C implementation.Rob Landley
2013-12-28Cosmetic tweak.Rob Landley
2013-12-23Clean up half-finished blkid.test.Rob Landley
2013-12-19Older python spit --version to stdout, 2.7 does it to stderr. Of course.Rob Landley
2013-12-19Regression test against Ancient Build Environment (Ubuntu 8.04), fixup bit-rot.Rob Landley
2013-12-18Ashwini Sharma added -v, I tweaked it a bit and added a couple test suite ↵Rob Landley
entries.
2013-11-18Add test suite for blkid and clean up an editorial comment that shouldn't ↵0.4.7Rob Landley
have been checked in.
2013-11-14Remove leftover debris from scripts/test.sh that screws up single tests with ↵Rob Landley
single.sh.
2013-11-10Filesystem images for testing blkid, from Bradley Conroy.Rob Landley
2013-10-27Promote nl from pending to posix, and add tests.Rob Landley
2013-10-23Don't use $CC without $CROSS_COMPILE because $HOSTCC could be something else ↵Rob Landley
entirely.
2013-10-15Teach scripts/test.sh to call scripts/single.sh.Rob Landley
2013-10-03Switch flag generation from shell to C.Rob Landley
This should actually generate FLAG_longopt 0 #defines for disabled bare longopts (ala ls without --color). Put temporary executables under "generated" (including instlist for install).
2013-09-22Fix generated/oldtoys.h to contain option strings with USE() macros in them.Rob Landley
2013-09-10First pass of cut cleanup, and make test script slightly happier with the ↵Rob Landley
concept of 80 character lines.
2013-09-09Adjust patch to use dlist_pop()Rob Landley
2013-09-09Redo tail closer to the original design. Add more tests for large data sets. ↵Rob Landley
(Still no -f support yet.)
2013-09-05Allow shipped generated/help.h to still be used, until I rewrite the ↵Rob Landley
generator in C.
2013-08-30make.sh: Fix probing for python2.x and be verbose in error reportingElie De Brauwer
2013-09-05Make chdir handle permissions according to posix, reported by Jacek Bukarewicz..Rob Landley
2013-09-01Implement ls --color=auto, suggested by Rich Felker.Rob Landley
2013-09-01Update status and roadmap pages, and status page generator script.Rob Landley
2013-08-30Add scripts/single.sh to build individual non-multiplexed standalone commands.Rob Landley
Alas, you can't quite do this yet: make defconfig make for i in $(./toybox) do echo $i PREFIX=singles/ scripts/single.sh $i || break done Because the OLDTOY() aliases for commands won't build without the base command. And I can't just skip them because chown/chmod or mv/cp aren't the same thing.
2013-08-19Finish grep rewrite and fleshing out test suite. Several of the grep tests ↵Rob Landley
fail with the ubuntu version, I _think_ these are upstream bugs? (Second opinions welcome...)
2013-08-17cut tests from Kyungwan Han.Rob Landley
2013-08-12More grep tests, remove obsolete comment.Rob Landley
2013-08-12More grep cleanup, and make OPTSTR_command macros for use with OLDTOY()Rob Landley
2013-08-11More grep tests.Rob Landley
2013-08-04Fluff out grep test suite some more, including lots of things we don't pass yet.Rob Landley
2013-08-01Clean up grep.test to use "infile" properly, and not try to work around the ↵Rob Landley
$PATH behavior of scripts/test.sh. Tested with both TEST_HOST=1 and normal.
2013-08-01I add testsuite for grep.Ashwini Sharma
It can test grep's option basically and I think it can help to check progress of development.
2013-07-25Juhani Haverinen pointed out that python 3 doesn't work with config2help.py, ↵Rob Landley
so you python2 binary until finishing the C rewrite.
2013-07-19Implement testFelix Janda
2013-07-25Don't make a FLAG_ macro for " ", it's a control character, doing so throws ↵Rob Landley
the indexes off. Reported by Ashwini Sharma.