diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-03-31 14:43:25 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-31 14:43:25 +0200 |
commit | 34425389e09353a8dacdd6b23a62553f699c544c (patch) | |
tree | 4eb2e19685536384748e75af827deca885c9cc0a /coreutils/sleep.c | |
parent | e3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff) | |
download | busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.bz2 busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.zip |
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.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 433f9d6ee..0ffbd16eb 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c | |||
@@ -18,6 +18,21 @@ | |||
18 | * time suffixes for seconds, minutes, hours, and days. | 18 | * time suffixes for seconds, minutes, hours, and days. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | //usage:#define sleep_trivial_usage | ||
22 | //usage: IF_FEATURE_FANCY_SLEEP("[") "N" IF_FEATURE_FANCY_SLEEP("]...") | ||
23 | //usage:#define sleep_full_usage "\n\n" | ||
24 | //usage: IF_NOT_FEATURE_FANCY_SLEEP("Pause for N seconds") | ||
25 | //usage: IF_FEATURE_FANCY_SLEEP( | ||
26 | //usage: "Pause for a time equal to the total of the args given, where each arg can\n" | ||
27 | //usage: "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays") | ||
28 | //usage: | ||
29 | //usage:#define sleep_example_usage | ||
30 | //usage: "$ sleep 2\n" | ||
31 | //usage: "[2 second delay results]\n" | ||
32 | //usage: IF_FEATURE_FANCY_SLEEP( | ||
33 | //usage: "$ sleep 1d 3h 22m 8s\n" | ||
34 | //usage: "[98528 second delay results]\n") | ||
35 | |||
21 | #include "libbb.h" | 36 | #include "libbb.h" |
22 | 37 | ||
23 | /* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells */ | 38 | /* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells */ |