From e913247fec162437920266182834aedadcb03004 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 31 Oct 2017 15:51:02 -0500 Subject: Rename test_*.c to demo_*.c (because "make test_$CMD" means something already), fluff out README, and add a comment to hostid explaining its deprecation. --- toys/example/README | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'toys/example/README') diff --git a/toys/example/README b/toys/example/README index d0f6631a..a3af8519 100644 --- a/toys/example/README +++ b/toys/example/README @@ -2,3 +2,13 @@ Example commands You probably don't want to deploy this, but it shows how to use the toybox infrastructure and provides templates for new commands. + +The hello.c and skeleton.c commands provide templates: hello.c is clean and +simple, skeleton.c demonstrates the option parsing infrastructure and having +multiple commands per file. When writing a new command, copying hello.c or +skeleton.c to the new name may provide a good starting point. + +The demo_* commands demonstrate infrastructure. + +Other commands in here are obsolete versions still in some recent Linux systems +(and often still in posix), but not really useful on modern systems. -- cgit v1.2.3