platform/upstream/toybox.git
16 years agoWow is make stupid. (Ahem, full of "magic, implicit rules". Which are stupid.)
Rob Landley [Sat, 29 Mar 2008 22:25:28 +0000 (17:25 -0500)]
Wow is make stupid.  (Ahem, full of "magic, implicit rules".  Which are stupid.)
The directory scripts/test is not related to the script scripts/test.sh.  If
the shell script is newer than the directory, IT DOESN'T MATTER.

16 years agoUpdate help, move test.sh to scripts, and fix "make test" to call right script.
Rob Landley [Fri, 28 Mar 2008 05:44:44 +0000 (00:44 -0500)]
Update help, move test.sh to scripts, and fix "make test" to call right script.

16 years agoAdd uninstall and uninstall_flat.
Rob Landley [Fri, 28 Mar 2008 05:40:57 +0000 (00:40 -0500)]
Add uninstall and uninstall_flat.

16 years agoAdd install target, and make install_flat use scripts/install.sh
Rob Landley [Fri, 28 Mar 2008 05:09:31 +0000 (00:09 -0500)]
Add install target, and make install_flat use scripts/install.sh

16 years agoAnother cp -r fix, another test case...
Rob Landley [Wed, 26 Mar 2008 05:54:56 +0000 (00:54 -0500)]
Another cp -r fix, another test case...

16 years agoUpdate cp -r to work better, add relevant tests to test suite.
Rob Landley [Tue, 25 Mar 2008 22:09:40 +0000 (17:09 -0500)]
Update cp -r to work better, add relevant tests to test suite.

16 years agoIf we don't remember to closedir(), the leaked filehandles add up.
Rob Landley [Mon, 24 Mar 2008 10:34:58 +0000 (05:34 -0500)]
If we don't remember to closedir(), the leaked filehandles add up.

16 years agoFix -r logic, it needs both source and dest paths explicitly stated.
Rob Landley [Mon, 24 Mar 2008 10:14:37 +0000 (05:14 -0500)]
Fix -r logic, it needs both source and dest paths explicitly stated.

16 years agoEnabling debugging should not change behavior. Oops.
Rob Landley [Mon, 24 Mar 2008 05:32:25 +0000 (00:32 -0500)]
Enabling debugging should not change behavior.  Oops.

16 years agoMake cp pass the rest of its test suite. Needs a bigger test suite (-lsHPLi
Rob Landley [Sun, 24 Feb 2008 09:48:06 +0000 (03:48 -0600)]
Make cp pass the rest of its test suite.  Needs a bigger test suite (-lsHPLi
and maybe -xviu), most of which still need to be implemented.

16 years agoAdd an install script, with --long --symlink --force and --uninstall options.
Rob Landley [Sun, 24 Feb 2008 07:34:01 +0000 (01:34 -0600)]
Add an install script, with --long --symlink --force and --uninstall options.

16 years agoDon't delete testdir after running test.sh. Add it to make clean instead.
Rob Landley [Sat, 23 Feb 2008 21:02:11 +0000 (15:02 -0600)]
Don't delete testdir after running test.sh.  Add it to make clean instead.

16 years agoRemove some commented out code.
Rob Landley [Sat, 23 Feb 2008 20:59:22 +0000 (14:59 -0600)]
Remove some commented out code.

16 years agoMake cp pass most of its test suite. Still need to add symlink support.
Rob Landley [Thu, 21 Feb 2008 10:44:42 +0000 (04:44 -0600)]
Make cp pass most of its test suite.  Still need to add symlink support.

16 years agoAdd first pass at cp, totally untested, unlikely to work yet. :)
Rob Landley [Wed, 20 Feb 2008 07:47:56 +0000 (01:47 -0600)]
Add first pass at cp, totally untested, unlikely to work yet. :)

16 years agoAdd enable/disable/exclude logic, update docs.
Rob Landley [Mon, 18 Feb 2008 09:32:17 +0000 (03:32 -0600)]
Add enable/disable/exclude logic, update docs.

16 years agoYet more build dependency tweaks...
Rob Landley [Sun, 17 Feb 2008 22:19:52 +0000 (16:19 -0600)]
Yet more build dependency tweaks...

16 years agoStart of tests for cp.
Rob Landley [Sun, 17 Feb 2008 02:00:11 +0000 (20:00 -0600)]
Start of tests for cp.

16 years agoDirtree needs to use lstat(), not stat. And failure should probably be a
Rob Landley [Sun, 17 Feb 2008 01:41:20 +0000 (19:41 -0600)]
Dirtree needs to use lstat(), not stat.  And failure should probably be a
warning rather than an error (it means the directory tree is changing out
from under it, but only the user knows if that's fatal).

16 years agoAdd TOYFLAG_UMASK.
Rob Landley [Wed, 13 Feb 2008 01:05:44 +0000 (19:05 -0600)]
Add TOYFLAG_UMASK.

16 years agoPartial update. Needs more work.
Rob Landley [Wed, 13 Feb 2008 00:41:34 +0000 (18:41 -0600)]
Partial update.  Needs more work.

16 years agoAdd toys.optc, an argv-style count for toys.optargs.
Rob Landley [Tue, 12 Feb 2008 23:36:13 +0000 (17:36 -0600)]
Add toys.optc, an argv-style count for toys.optargs.

16 years agoFix up (admittedly stubby) mdev so it's actually hooked up to the build.
Rob Landley [Tue, 12 Feb 2008 23:35:10 +0000 (17:35 -0600)]
Fix up (admittedly stubby) mdev so it's actually hooked up to the build.

16 years agoScript from Roberto Foglietta to do config2help in bash instead of python.
Rob Landley [Wed, 30 Jan 2008 23:05:37 +0000 (17:05 -0600)]
Script from Roberto Foglietta to do config2help in bash instead of python.

16 years agoAdd spaces after some commas (from Charlie Shepherd).
Rob Landley [Sun, 27 Jan 2008 22:22:41 +0000 (16:22 -0600)]
Add spaces after some commas (from Charlie Shepherd).

16 years agoRemove extra newlines on error_paths
Charlie Shepherd [Fri, 25 Jan 2008 12:54:31 +0000 (12:54 +0000)]
Remove extra newlines on error_paths

16 years agoFix filename in header
Charlie Shepherd [Fri, 25 Jan 2008 12:36:24 +0000 (12:36 +0000)]
Fix filename in header

16 years agoUpdate .hgignore to cover new generated/ directory
Charlie Shepherd [Fri, 25 Jan 2008 12:34:18 +0000 (12:34 +0000)]
Update .hgignore to cover new generated/ directory

16 years agoFix copyright name
Charlie Shepherd [Fri, 25 Jan 2008 12:33:33 +0000 (12:33 +0000)]
Fix copyright name

16 years agoDie on compilation or stripping failure
Charlie Shepherd [Fri, 25 Jan 2008 14:44:01 +0000 (14:44 +0000)]
Die on compilation or stripping failure

16 years agoHave chvt print an error message (and exit with error) when it fails.
Rob Landley [Sun, 27 Jan 2008 21:26:32 +0000 (15:26 -0600)]
Have chvt print an error message (and exit with error) when it fails.

16 years agoTeach perror_exit() to take a NULL argument when we just want "command: error".
Rob Landley [Sun, 27 Jan 2008 21:26:08 +0000 (15:26 -0600)]
Teach perror_exit() to take a NULL argument when we just want "command: error".

16 years agoComment and whitespace cleanups by Charlie Shepherd (code's the same).
Rob Landley [Sun, 27 Jan 2008 05:18:08 +0000 (23:18 -0600)]
Comment and whitespace cleanups by Charlie Shepherd (code's the same).

16 years agoMight as well make the dependencies slightly more paranoid.
Rob Landley [Wed, 23 Jan 2008 01:20:06 +0000 (19:20 -0600)]
Might as well make the dependencies slightly more paranoid.
(The only reason to have dependencies at all is so "make install" doesn't
trigger a rebuild.  A rebuild is always a build all anyway.)

16 years agoSort newtoys.h by command name, not by USE_ macro.
Rob Landley [Tue, 22 Jan 2008 23:38:55 +0000 (17:38 -0600)]
Sort newtoys.h by command name, not by USE_ macro.

16 years agoFix crash when running unknown command via symlink.
Rob Landley [Tue, 22 Jan 2008 21:33:50 +0000 (15:33 -0600)]
Fix crash when running unknown command via symlink.
(The error message was trying to print an uninitialied field.  Oops.)

16 years agoHit makefile dependencies so install step doesn't rebuild toybox.
Rob Landley [Mon, 21 Jan 2008 20:47:08 +0000 (14:47 -0600)]
Hit makefile dependencies so install step doesn't rebuild toybox.

16 years agoFluff out hello.c to supply more example code as a skeleton for new commands,
Rob Landley [Mon, 21 Jan 2008 01:00:16 +0000 (19:00 -0600)]
Fluff out hello.c to supply more example code as a skeleton for new commands,
and update a chunk of code.html (much more to do there).

16 years agoMove dlist_add() to lib/llist.c
Rob Landley [Sun, 20 Jan 2008 23:34:53 +0000 (17:34 -0600)]
Move dlist_add() to lib/llist.c

16 years agoZap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
Rob Landley [Sun, 20 Jan 2008 23:25:44 +0000 (17:25 -0600)]
Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
macros in each C file, and making generated/globals.h from that.  Rename
"toy" to "this" along the way to avoid toy/toys confusion.

16 years agoMinor cleanup: move mke2fs options into mke2fs.c.
Rob Landley [Sat, 19 Jan 2008 23:55:45 +0000 (17:55 -0600)]
Minor cleanup: move mke2fs options into mke2fs.c.

16 years agoMore documentation for generated/* files.
Rob Landley [Sat, 19 Jan 2008 23:49:51 +0000 (17:49 -0600)]
More documentation for generated/* files.

16 years agoMove NEWTOY() list from end of toylist.h to generated/newtoys.h.
Rob Landley [Sat, 19 Jan 2008 23:43:27 +0000 (17:43 -0600)]
Move NEWTOY() list from end of toylist.h to generated/newtoys.h.

16 years agoZap toys/Config.in and instead create generated/Config.in from contents of
Rob Landley [Sat, 19 Jan 2008 23:08:39 +0000 (17:08 -0600)]
Zap toys/Config.in and instead create generated/Config.in from contents of
toys/*.c.  Move relevant info into comment at the top of each toys/*.c.  Also
convert more of Makefile into a thin wrapper around shell scripts that actually
do the work.  (Makefile is only still there for the user interface.)

16 years agoMove some generated files into the "generated" subdirectory.
Rob Landley [Thu, 10 Jan 2008 20:40:13 +0000 (14:40 -0600)]
Move some generated files into the "generated" subdirectory.

16 years agoVery early stub of sed, does nothing yet.
Rob Landley [Thu, 10 Jan 2008 20:34:15 +0000 (14:34 -0600)]
Very early stub of sed, does nothing yet.

16 years agoWeb page tweak.
Rob Landley [Tue, 8 Jan 2008 02:28:26 +0000 (20:28 -0600)]
Web page tweak.

16 years agoAdd chvt from David Anders.
Rob Landley [Sun, 6 Jan 2008 22:01:11 +0000 (16:01 -0600)]
Add chvt from David Anders.

16 years agoFluffier web page.
Rob Landley [Sun, 6 Jan 2008 00:23:30 +0000 (18:23 -0600)]
Fluffier web page.

16 years agoMore web page tweaks.
Rob Landley [Sun, 6 Jan 2008 00:13:19 +0000 (18:13 -0600)]
More web page tweaks.

16 years agoUpdate web pages.
Rob Landley [Sun, 6 Jan 2008 00:09:49 +0000 (18:09 -0600)]
Update web pages.

16 years agoA bit more documentation on Patch.
Rob Landley [Sun, 6 Jan 2008 00:08:17 +0000 (18:08 -0600)]
A bit more documentation on Patch.

16 years agoUpdate help text a bit.
Rob Landley [Sat, 5 Jan 2008 22:40:40 +0000 (16:40 -0600)]
Update help text a bit.

16 years agoTeach readlink to actually do -f.
Rob Landley [Sat, 5 Jan 2008 21:20:26 +0000 (15:20 -0600)]
Teach readlink to actually do -f.

16 years agoRelease notice.
Rob Landley [Wed, 2 Jan 2008 07:40:09 +0000 (01:40 -0600)]
Release notice.

16 years agoAdded tag 0.0.4 for changeset 104792581cc9
Rob Landley [Wed, 2 Jan 2008 07:36:38 +0000 (01:36 -0600)]
Added tag 0.0.4 for changeset 104792581cc9

16 years agoFix loopfiles to not call function() on file not found. 0.0.4
Rob Landley [Tue, 1 Jan 2008 08:39:29 +0000 (02:39 -0600)]
Fix loopfiles to not call function() on file not found.

16 years agoFix patch to use @@ values and match EOF when fewer trailing than starting
Rob Landley [Mon, 31 Dec 2007 20:34:41 +0000 (14:34 -0600)]
Fix patch to use @@ values and match EOF when fewer trailing than starting
context lines.

16 years agoMake touch work reliably when file doesn't exist and clean up headers a bit.
Rob Landley [Fri, 28 Dec 2007 09:29:33 +0000 (03:29 -0600)]
Make touch work reliably when file doesn't exist and clean up headers a bit.

16 years agoBrief note about code style.
Rob Landley [Fri, 28 Dec 2007 03:36:44 +0000 (21:36 -0600)]
Brief note about code style.

16 years agoMake patch's file add actually work, including directory creating and
Rob Landley [Fri, 28 Dec 2007 03:36:33 +0000 (21:36 -0600)]
Make patch's file add actually work, including directory creating and
understanding zero-context hunks.

16 years agoMajor refactoring of bunzip.c in preparation for doing a multi-threaded version.
Rob Landley [Tue, 25 Dec 2007 01:53:20 +0000 (19:53 -0600)]
Major refactoring of bunzip.c in preparation for doing a multi-threaded version.

16 years agoUpgrade patch to understand creating and deleting files.
Rob Landley [Thu, 20 Dec 2007 12:30:19 +0000 (06:30 -0600)]
Upgrade patch to understand creating and deleting files.

16 years agoMore random unfinished code documentation.
Rob Landley [Thu, 20 Dec 2007 12:29:59 +0000 (06:29 -0600)]
More random unfinished code documentation.

16 years agoTypo spotted by Adrian Davey.
Rob Landley [Thu, 20 Dec 2007 10:39:26 +0000 (04:39 -0600)]
Typo spotted by Adrian Davey.

16 years agoPatch should be working now, change config default...
Rob Landley [Tue, 18 Dec 2007 08:34:08 +0000 (02:34 -0600)]
Patch should be working now, change config default...

16 years agoFluff out code.html a bit more.
Rob Landley [Tue, 18 Dec 2007 08:02:47 +0000 (02:02 -0600)]
Fluff out code.html a bit more.

16 years agoPatch command.
Rob Landley [Tue, 18 Dec 2007 08:02:21 +0000 (02:02 -0600)]
Patch command.

16 years agominicom.sh should check for a char device, not a file.
Rob Landley [Mon, 17 Dec 2007 23:34:02 +0000 (17:34 -0600)]
minicom.sh should check for a char device, not a file.

16 years agoA couple more readlink tests.
Rob Landley [Mon, 17 Dec 2007 00:02:44 +0000 (18:02 -0600)]
A couple more readlink tests.

16 years agoDelete testdir after use.
Rob Landley [Mon, 17 Dec 2007 00:02:05 +0000 (18:02 -0600)]
Delete testdir after use.

16 years agoTweak testing.sh so VERBOSE=1 is less noisy.
Rob Landley [Sun, 16 Dec 2007 23:56:31 +0000 (17:56 -0600)]
Tweak testing.sh so VERBOSE=1 is less noisy.

16 years agoAdd a wrapper to run tests out of scripts/test. With no arguments, runs all
Rob Landley [Sun, 16 Dec 2007 23:55:34 +0000 (17:55 -0600)]
Add a wrapper to run tests out of scripts/test.  With no arguments, runs all
*.test files.  Arguments are names of commands to test.  When environment
variable "OLD" is set, tests commands in $PATH rather than new toybox versions.

16 years agoScript to use stty with netcat -f to talk to a serial port.
Rob Landley [Sun, 16 Dec 2007 06:04:17 +0000 (00:04 -0600)]
Script to use stty with netcat -f to talk to a serial port.

16 years agoBasic tests for readlink.
Rob Landley [Sun, 16 Dec 2007 04:05:42 +0000 (22:05 -0600)]
Basic tests for readlink.

16 years agoStart of "patch" support. Writes to stdout at the moment.
Rob Landley [Sun, 16 Dec 2007 03:47:25 +0000 (21:47 -0600)]
Start of "patch" support.  Writes to stdout at the moment.

16 years agoUpdate web pages.
Rob Landley [Thu, 13 Dec 2007 13:00:27 +0000 (07:00 -0600)]
Update web pages.

16 years agoSet the executable bit in license.html so the server side #includes get parsed.
Rob Landley [Wed, 12 Dec 2007 22:19:00 +0000 (16:19 -0600)]
Set the executable bit in license.html so the server side #includes get parsed.

16 years agoUpdate links and add some more spec comments.
Rob Landley [Tue, 11 Dec 2007 21:41:31 +0000 (15:41 -0600)]
Update links and add some more spec comments.

16 years agoChangeset 186 assumed that toys.exitval defaults to 0. Actually change the
Rob Landley [Sun, 9 Dec 2007 21:35:42 +0000 (15:35 -0600)]
Changeset 186 assumed that toys.exitval defaults to 0.  Actually change the
default and have [p]error_exit() always return nonzero anyway.

16 years agoAdd some more .PHONY targets.
Rob Landley [Sun, 9 Dec 2007 21:32:07 +0000 (15:32 -0600)]
Add some more .PHONY targets.

16 years agoAdd -c option to oneit, to specify console other than /dev/tty0.
Rob Landley [Sun, 9 Dec 2007 21:30:36 +0000 (15:30 -0600)]
Add -c option to oneit, to specify console other than /dev/tty0.

16 years agoAdd comments about SUSv3 specs (or lack thereof).
Rob Landley [Tue, 4 Dec 2007 02:05:57 +0000 (20:05 -0600)]
Add comments about SUSv3 specs (or lack thereof).

16 years agoOther chroots fall back to "/bin/sh -i", so add the -i.
Rob Landley [Tue, 4 Dec 2007 02:05:14 +0000 (20:05 -0600)]
Other chroots fall back to "/bin/sh -i", so add the -i.

16 years agoMinor cleanups to sha1sum.
Rob Landley [Tue, 4 Dec 2007 01:59:34 +0000 (19:59 -0600)]
Minor cleanups to sha1sum.

16 years agoAdd chroot.
Rob Landley [Tue, 4 Dec 2007 01:28:51 +0000 (19:28 -0600)]
Add chroot.

16 years agoNetcat needs this to build.
Rob Landley [Tue, 4 Dec 2007 00:57:57 +0000 (18:57 -0600)]
Netcat needs this to build.

16 years agoAdd first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley [Tue, 4 Dec 2007 00:53:00 +0000 (18:53 -0600)]
Add first pass at netcat.  Base applet, -f, and -w implemented.

16 years agoMinor cleanups/tweaks to touch.
Rob Landley [Fri, 30 Nov 2007 10:37:24 +0000 (04:37 -0600)]
Minor cleanups/tweaks to touch.

16 years agoAdd sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley [Fri, 30 Nov 2007 00:32:20 +0000 (18:32 -0600)]
Add sha1sum.  (No -c mode yet.)  Slight tweaks to loopfiles() too.

16 years agoChange command main() functions to return void, and exit(toys.exitval) from
Rob Landley [Fri, 30 Nov 2007 00:14:37 +0000 (18:14 -0600)]
Change command main() functions to return void, and exit(toys.exitval) from
the toybox infrastructure instead.  Eliminates a return call from each command.

16 years agoAdd loopfiles() function, make catv use it.
Rob Landley [Thu, 29 Nov 2007 23:49:50 +0000 (17:49 -0600)]
Add loopfiles() function, make catv use it.

16 years agoAdd a comment about a case that made me stop and think.
Rob Landley [Tue, 27 Nov 2007 07:44:27 +0000 (01:44 -0600)]
Add a comment about a case that made me stop and think.

16 years agoRebuild toybox when a header file changes
Charlie Shepherd [Sun, 25 Nov 2007 16:54:29 +0000 (16:54 +0000)]
Rebuild toybox when a header file changes

16 years agoPatch from Charlie Shepherd: remove extra \n from error_exit() arguments.
Rob Landley [Tue, 27 Nov 2007 07:41:32 +0000 (01:41 -0600)]
Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.

16 years agoAdd comment, and whitespace changes.
Rob Landley [Tue, 27 Nov 2007 07:36:50 +0000 (01:36 -0600)]
Add comment, and whitespace changes.

16 years agoAdd kconfig/conf to .hgignore
Charlie Shepherd [Fri, 23 Nov 2007 21:01:37 +0000 (21:01 +0000)]
Add kconfig/conf to .hgignore

16 years agoAdd tty applet
Charlie Shepherd [Fri, 23 Nov 2007 20:49:27 +0000 (20:49 +0000)]
Add tty applet

16 years agoAdd comment and very minor tweak.
Rob Landley [Tue, 27 Nov 2007 07:19:40 +0000 (01:19 -0600)]
Add comment and very minor tweak.

16 years agoRemove a few bytes from basename and add 'em back (and more) in the help string.
Rob Landley [Tue, 27 Nov 2007 07:06:43 +0000 (01:06 -0600)]
Remove a few bytes from basename and add 'em back (and more) in the help string.