[git commit master] yes: this applet doesn't have options, don't lie that it does.

Denys Vlasenko vda.linux at googlemail.com
Sun Jun 6 03:23:09 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=f2177abe1d1da0f845147e29f5565a53d9cba09d
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 coreutils/yes.c     |    5 +++++
 include/usage.src.h |    5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/coreutils/yes.c b/coreutils/yes.c
index d757a45..ead674b 100644
--- a/coreutils/yes.c
+++ b/coreutils/yes.c
@@ -18,6 +18,11 @@
 
 /* This is a NOFORK applet. Be very careful! */
 
+//usage:#define yes_trivial_usage
+//usage:       "[STRING]"
+//usage:#define yes_full_usage "\n\n"
+//usage:       "Repeatedly output a line with STRING, or 'y'"
+
 int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int yes_main(int argc UNUSED_PARAM, char **argv)
 {
diff --git a/include/usage.src.h b/include/usage.src.h
index 78c0a0f..f9f4578 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -5236,11 +5236,6 @@ INSERT
        "$ ls | xargs gzip\n" \
        "$ find . -name '*.c' -print | xargs rm\n"
 
-#define yes_trivial_usage \
-       "[OPTIONS] [STRING]"
-#define yes_full_usage "\n\n" \
-       "Repeatedly output a line with STRING, or 'y'"
-
 #define zcat_trivial_usage \
        "FILE"
 #define zcat_full_usage "\n\n" \
-- 
1.6.3.3



More information about the busybox-cvs mailing list