diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-16 20:57:15 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-16 20:57:15 +0000 |
commit | bf181b9338152759fd56c8009e9a962a84808e7c (patch) | |
tree | e8c416c791c690f661c513340662e4e98ff3464a /findutils | |
parent | 3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff) | |
download | busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.gz busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.bz2 busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.zip |
Extract usage information into a separate file.
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 12 | ||||
-rw-r--r-- | findutils/grep.c | 15 | ||||
-rw-r--r-- | findutils/which.c | 7 |
3 files changed, 0 insertions, 34 deletions
diff --git a/findutils/find.c b/findutils/find.c index e18f3c569..1c209aea1 100644 --- a/findutils/find.c +++ b/findutils/find.c | |||
@@ -32,18 +32,6 @@ static char *pattern = NULL; | |||
32 | static char *directory = "."; | 32 | static char *directory = "."; |
33 | static int dereferenceFlag = FALSE; | 33 | static int dereferenceFlag = FALSE; |
34 | 34 | ||
35 | static const char find_usage[] = "find [PATH...] [EXPRESSION]\n" | ||
36 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
37 | "\nSearch for files in a directory hierarchy. The default PATH is\n" | ||
38 | "the current directory; default EXPRESSION is '-print'\n\n" | ||
39 | "\nEXPRESSION may consist of:\n" | ||
40 | "\t-follow\t\tDereference symbolic links.\n" | ||
41 | "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n" | ||
42 | "\t-print\t\tprint the full file name followed by a newline to stdout.\n" | ||
43 | #endif | ||
44 | ; | ||
45 | |||
46 | |||
47 | static int fileAction(const char *fileName, struct stat *statbuf, void* junk) | 35 | static int fileAction(const char *fileName, struct stat *statbuf, void* junk) |
48 | { | 36 | { |
49 | if (pattern == NULL) | 37 | if (pattern == NULL) |
diff --git a/findutils/grep.c b/findutils/grep.c index 03945fa25..a2c07c523 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -31,21 +31,6 @@ | |||
31 | extern int optind; /* in unistd.h */ | 31 | extern int optind; /* in unistd.h */ |
32 | extern int errno; /* for use with strerror() */ | 32 | extern int errno; /* for use with strerror() */ |
33 | 33 | ||
34 | static const char grep_usage[] = | ||
35 | "grep [-ihHnqvs] pattern [files...]\n" | ||
36 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
37 | "\nSearch for PATTERN in each FILE or standard input.\n\n" | ||
38 | "Options:\n" | ||
39 | "\t-H\tprefix output lines with filename where match was found\n" | ||
40 | "\t-h\tsuppress the prefixing filename on output\n" | ||
41 | "\t-i\tignore case distinctions\n" | ||
42 | "\t-n\tprint line number with output lines\n" | ||
43 | "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n" | ||
44 | "\t-v\tselect non-matching lines\n" | ||
45 | "\t-s\tsuppress file open/read error messages\n\n" | ||
46 | #endif | ||
47 | ; | ||
48 | |||
49 | /* options */ | 34 | /* options */ |
50 | static int ignore_case = 0; | 35 | static int ignore_case = 0; |
51 | static int print_filename = 0; | 36 | static int print_filename = 0; |
diff --git a/findutils/which.c b/findutils/which.c index 186bfdad7..943e10a57 100644 --- a/findutils/which.c +++ b/findutils/which.c | |||
@@ -26,13 +26,6 @@ | |||
26 | #include <sys/stat.h> | 26 | #include <sys/stat.h> |
27 | #include <sys/param.h> | 27 | #include <sys/param.h> |
28 | 28 | ||
29 | const char which_usage[] = | ||
30 | "which [COMMAND ...]\n" | ||
31 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
32 | "\nLocates a COMMAND.\n" | ||
33 | #endif | ||
34 | ; | ||
35 | |||
36 | extern int which_main(int argc, char **argv) | 29 | extern int which_main(int argc, char **argv) |
37 | { | 30 | { |
38 | char *path_list, *test, *tmp, *path_parsed; | 31 | char *path_list, *test, *tmp, *path_parsed; |