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/chmod.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/chmod.c')
-rw-r--r-- | coreutils/chmod.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/coreutils/chmod.c b/coreutils/chmod.c index f07a49bd3..0bcd6bb66 100644 --- a/coreutils/chmod.c +++ b/coreutils/chmod.c | |||
@@ -14,6 +14,29 @@ | |||
14 | /* BB_AUDIT GNU defects - unsupported long options. */ | 14 | /* BB_AUDIT GNU defects - unsupported long options. */ |
15 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */ | 15 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */ |
16 | 16 | ||
17 | //usage:#define chmod_trivial_usage | ||
18 | //usage: "[-R"IF_DESKTOP("cvf")"] MODE[,MODE]... FILE..." | ||
19 | //usage:#define chmod_full_usage "\n\n" | ||
20 | //usage: "Each MODE is one or more of the letters ugoa, one of the\n" | ||
21 | //usage: "symbols +-= and one or more of the letters rwxst\n" | ||
22 | //usage: "\nOptions:" | ||
23 | //usage: "\n -R Recurse" | ||
24 | //usage: IF_DESKTOP( | ||
25 | //usage: "\n -c List changed files" | ||
26 | //usage: "\n -v List all files" | ||
27 | //usage: "\n -f Hide errors" | ||
28 | //usage: ) | ||
29 | //usage: | ||
30 | //usage:#define chmod_example_usage | ||
31 | //usage: "$ ls -l /tmp/foo\n" | ||
32 | //usage: "-rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" | ||
33 | //usage: "$ chmod u+x /tmp/foo\n" | ||
34 | //usage: "$ ls -l /tmp/foo\n" | ||
35 | //usage: "-rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*\n" | ||
36 | //usage: "$ chmod 444 /tmp/foo\n" | ||
37 | //usage: "$ ls -l /tmp/foo\n" | ||
38 | //usage: "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" | ||
39 | |||
17 | #include "libbb.h" | 40 | #include "libbb.h" |
18 | 41 | ||
19 | /* This is a NOEXEC applet. Be very careful! */ | 42 | /* This is a NOEXEC applet. Be very careful! */ |