diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-09 04:22:48 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-09 04:22:48 +0200 |
commit | 7fb68f199f037cb69363c8df5c934a27adc699f7 (patch) | |
tree | 2eb01a3bc4b3caf6bd7dd4fed6984716fd7ca89a /findutils/grep.c | |
parent | 6774386d95cec54258f23f69bc287c99e205ebdf (diff) | |
download | busybox-w32-7fb68f199f037cb69363c8df5c934a27adc699f7.tar.gz busybox-w32-7fb68f199f037cb69363c8df5c934a27adc699f7.tar.bz2 busybox-w32-7fb68f199f037cb69363c8df5c934a27adc699f7.zip |
make it possible to keep Config/Kbuild snippets in *.c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'findutils/grep.c')
-rw-r--r-- | findutils/grep.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 0f1c11abb..be290118f 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -19,6 +19,41 @@ | |||
19 | * (C) 2006 Jac Goudsmit added -o option | 19 | * (C) 2006 Jac Goudsmit added -o option |
20 | */ | 20 | */ |
21 | 21 | ||
22 | //kbuild:lib-$(CONFIG_GREP) += grep.o | ||
23 | //config: | ||
24 | //config:config GREP | ||
25 | //config: bool "grep" | ||
26 | //config: default n | ||
27 | //config: help | ||
28 | //config: grep is used to search files for a specified pattern. | ||
29 | //config: | ||
30 | //config:config FEATURE_GREP_EGREP_ALIAS | ||
31 | //config: bool "Enable extended regular expressions (egrep & grep -E)" | ||
32 | //config: default y | ||
33 | //config: depends on GREP | ||
34 | //config: help | ||
35 | //config: Enabled support for extended regular expressions. Extended | ||
36 | //config: regular expressions allow for alternation (foo|bar), grouping, | ||
37 | //config: and various repetition operators. | ||
38 | //config: | ||
39 | //config:config FEATURE_GREP_FGREP_ALIAS | ||
40 | //config: bool "Alias fgrep to grep -F" | ||
41 | //config: default y | ||
42 | //config: depends on GREP | ||
43 | //config: help | ||
44 | //config: fgrep sees the search pattern as a normal string rather than | ||
45 | //config: regular expressions. | ||
46 | //config: grep -F always works, this just creates the fgrep alias. | ||
47 | //config: | ||
48 | //config:config FEATURE_GREP_CONTEXT | ||
49 | //config: bool "Enable before and after context flags (-A, -B and -C)" | ||
50 | //config: default y | ||
51 | //config: depends on GREP | ||
52 | //config: help | ||
53 | //config: Print the specified number of leading (-B) and/or trailing (-A) | ||
54 | //config: context surrounding our matching lines. | ||
55 | //config: Print the specified number of context lines (-C). | ||
56 | |||
22 | #include "libbb.h" | 57 | #include "libbb.h" |
23 | #include "xregex.h" | 58 | #include "xregex.h" |
24 | 59 | ||