summaryrefslogtreecommitdiff
path: root/coreutils/sleep.c
diff options
context:
space:
mode:
authorPere Orga2011-03-31 14:43:25 +0200
committerDenys Vlasenko2011-03-31 14:43:25 +0200
commit34425389e09353a8dacdd6b23a62553f699c544c (patch)
tree4eb2e19685536384748e75af827deca885c9cc0a /coreutils/sleep.c
parente3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff)
downloadbusybox-34425389e09353a8dacdd6b23a62553f699c544c.zip
busybox-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/sleep.c')
-rw-r--r--coreutils/sleep.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index 433f9d6..0ffbd16 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -18,6 +18,21 @@
* time suffixes for seconds, minutes, hours, and days.
*/
+//usage:#define sleep_trivial_usage
+//usage: IF_FEATURE_FANCY_SLEEP("[") "N" IF_FEATURE_FANCY_SLEEP("]...")
+//usage:#define sleep_full_usage "\n\n"
+//usage: IF_NOT_FEATURE_FANCY_SLEEP("Pause for N seconds")
+//usage: IF_FEATURE_FANCY_SLEEP(
+//usage: "Pause for a time equal to the total of the args given, where each arg can\n"
+//usage: "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays")
+//usage:
+//usage:#define sleep_example_usage
+//usage: "$ sleep 2\n"
+//usage: "[2 second delay results]\n"
+//usage: IF_FEATURE_FANCY_SLEEP(
+//usage: "$ sleep 1d 3h 22m 8s\n"
+//usage: "[98528 second delay results]\n")
+
#include "libbb.h"
/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells */