diff options
author | Denys Vlasenko | 2010-05-09 04:22:48 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-05-09 04:22:48 +0200 |
commit | 7fb68f199f037cb69363c8df5c934a27adc699f7 (patch) | |
tree | 2eb01a3bc4b3caf6bd7dd4fed6984716fd7ca89a /findutils/grep.c | |
parent | 6774386d95cec54258f23f69bc287c99e205ebdf (diff) | |
download | busybox-7fb68f199f037cb69363c8df5c934a27adc699f7.zip busybox-7fb68f199f037cb69363c8df5c934a27adc699f7.tar.gz |
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 0f1c11a..be29011 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -19,6 +19,41 @@ * (C) 2006 Jac Goudsmit added -o option */ +//kbuild:lib-$(CONFIG_GREP) += grep.o +//config: +//config:config GREP +//config: bool "grep" +//config: default n +//config: help +//config: grep is used to search files for a specified pattern. +//config: +//config:config FEATURE_GREP_EGREP_ALIAS +//config: bool "Enable extended regular expressions (egrep & grep -E)" +//config: default y +//config: depends on GREP +//config: help +//config: Enabled support for extended regular expressions. Extended +//config: regular expressions allow for alternation (foo|bar), grouping, +//config: and various repetition operators. +//config: +//config:config FEATURE_GREP_FGREP_ALIAS +//config: bool "Alias fgrep to grep -F" +//config: default y +//config: depends on GREP +//config: help +//config: fgrep sees the search pattern as a normal string rather than +//config: regular expressions. +//config: grep -F always works, this just creates the fgrep alias. +//config: +//config:config FEATURE_GREP_CONTEXT +//config: bool "Enable before and after context flags (-A, -B and -C)" +//config: default y +//config: depends on GREP +//config: help +//config: Print the specified number of leading (-B) and/or trailing (-A) +//config: context surrounding our matching lines. +//config: Print the specified number of context lines (-C). + #include "libbb.h" #include "xregex.h" |