From 7fb68f199f037cb69363c8df5c934a27adc699f7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 9 May 2010 04:22:48 +0200 Subject: make it possible to keep Config/Kbuild snippets in *.c files Signed-off-by: Denys Vlasenko --- findutils/grep.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'findutils/grep.c') 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 @@ * (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" -- cgit v1.2.3