blob: e5f82986db8739acdfa5a9ca190774ce8851e5ee [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "Finding Utilities"
7
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00008config FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +00009 bool "find"
10 default n
11 help
Eric Andersen65e20a32003-07-05 07:52:35 +000012 find is used to search your system to find specified files.
Eric Andersenc9f20d92002-12-05 08:41:41 +000013
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000014config FEATURE_FIND_PRINT0
Paul Foxd7384292006-05-12 14:47:20 +000015 bool "Enable -print0 option"
16 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000017 depends on FIND
Paul Foxd7384292006-05-12 14:47:20 +000018 help
19 Causes output names to be separated by a null character
20 rather than a newline. This allows names that contain
21 newlines and other whitespace to be more easily
22 interpreted by other programs.
23
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000024config FEATURE_FIND_MTIME
Rob Landley2ec922e2006-04-13 23:22:16 +000025 bool "Enable modified time matching (-mtime) option"
Eric Andersenc9f20d92002-12-05 08:41:41 +000026 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000027 depends on FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +000028 help
Eric Andersenfb0c6af2003-07-14 19:18:43 +000029 Allow searching based on the modification time of
Paul Fox72d1a232006-01-13 21:05:41 +000030 files, in days.
31
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000032config FEATURE_FIND_MMIN
Rob Landley2ec922e2006-04-13 23:22:16 +000033 bool "Enable modified time matching (-min) option"
Paul Fox72d1a232006-01-13 21:05:41 +000034 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000035 depends on FIND
Paul Fox72d1a232006-01-13 21:05:41 +000036 help
37 Allow searching based on the modification time of
38 files, in minutes.
Eric Andersenc9f20d92002-12-05 08:41:41 +000039
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000040config FEATURE_FIND_PERM
Rob Landley2ec922e2006-04-13 23:22:16 +000041 bool "Enable permissions matching (-perm) option"
Eric Andersenc9f20d92002-12-05 08:41:41 +000042 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000043 depends on FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +000044 help
Eric Andersenfb0c6af2003-07-14 19:18:43 +000045 Enable searching based on file permissions.
Eric Andersenc9f20d92002-12-05 08:41:41 +000046
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000047config FEATURE_FIND_TYPE
Rob Landley2ec922e2006-04-13 23:22:16 +000048 bool "Enable filetype matching (-type) option"
Eric Andersenc9f20d92002-12-05 08:41:41 +000049 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000050 depends on FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +000051 help
Eric Andersenfb0c6af2003-07-14 19:18:43 +000052 Enable searching based on file type (file,
53 directory, socket, device, etc.).
Eric Andersenc9f20d92002-12-05 08:41:41 +000054
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000055config FEATURE_FIND_XDEV
Rob Landley2ec922e2006-04-13 23:22:16 +000056 bool "Enable stay in filesystem (-xdev) option"
Eric Andersenc9f20d92002-12-05 08:41:41 +000057 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000058 depends on FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +000059 help
Eric Andersen88c916b2003-10-22 09:58:56 +000060 This option will allow find to restrict searches to a single
Eric Andersenfb0c6af2003-07-14 19:18:43 +000061 filesystem.
Eric Andersenc9f20d92002-12-05 08:41:41 +000062
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000063config FEATURE_FIND_NEWER
Rob Landley2ec922e2006-04-13 23:22:16 +000064 bool "Enable -newer option for comparing file mtimes"
Eric Andersen97d86f22003-01-23 05:27:42 +000065 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000066 depends on FIND
Eric Andersen97d86f22003-01-23 05:27:42 +000067 help
68 Support the 'find -newer' option for finding any files which have
69 a modified time that is more recent than the specified FILE.
70
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000071config FEATURE_FIND_INUM
Rob Landley2ec922e2006-04-13 23:22:16 +000072 bool "Enable inode number matching (-inum) option"
Eric Andersen97d86f22003-01-23 05:27:42 +000073 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000074 depends on FIND
Eric Andersen97d86f22003-01-23 05:27:42 +000075 help
Eric Andersen88c916b2003-10-22 09:58:56 +000076 Support the 'find -inum' option for searching by inode number.
Eric Andersen97d86f22003-01-23 05:27:42 +000077
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000078config FEATURE_FIND_EXEC
Rob Landley2ec922e2006-04-13 23:22:16 +000079 bool "Enable (-exec) option allowing execution of commands"
Rob Landley5d3a0e82005-10-04 03:34:39 +000080 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000081 depends on FIND
Rob Landley5d3a0e82005-10-04 03:34:39 +000082 help
83 Support the 'find -exec' option for executing commands based upon
84 the files matched.
85
Denis Vlasenkoa1007072007-02-02 01:17:52 +000086config FEATURE_FIND_USER
87 bool "Enable username/uid matching (-user) option"
88 default y
89 depends on FIND
90 help
91 Support the 'find -user' option for searching by username or uid.
92
Denis Vlasenkocf787cf2007-02-04 17:11:25 +000093config FEATURE_FIND_NOT
94 bool "Enable the 'not' (!) operator"
95 default y
96 depends on FIND
97 help
98 Support the '!' operator to invert the test results. If 'Enable
99 full-blown desktop' is enabled, then will also the non-POSIX
100 '-not' be supported.
101
102config FEATURE_FIND_NOT
103 bool "Enable the 'not' (!) operator"
104 default y
105 depends on FIND
106 help
107 Support the '!' operator to invert the test results. If 'Enable
108 full-blown desktop' is enabled, then will also the non-POSIX
109 '-not' be supported.
110
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000111config GREP
Eric Andersenc9f20d92002-12-05 08:41:41 +0000112 bool "grep"
113 default n
114 help
Eric Andersen65e20a32003-07-05 07:52:35 +0000115 grep is used to search files for a specified pattern.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000116
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000117config FEATURE_GREP_EGREP_ALIAS
Rob Landley2ec922e2006-04-13 23:22:16 +0000118 bool "Support extended regular expressions (egrep & grep -E)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000119 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000120 depends on GREP
Eric Andersenc9f20d92002-12-05 08:41:41 +0000121 help
Eric Andersenfb0c6af2003-07-14 19:18:43 +0000122 Enabled support for extended regular expressions. Extended
123 regular expressions allow for alternation (foo|bar), grouping,
124 and various repetition operators.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000125
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000126config FEATURE_GREP_FGREP_ALIAS
Rob Landley2ec922e2006-04-13 23:22:16 +0000127 bool "Alias fgrep to grep -F"
Glenn L McGrathc91ce572003-04-27 02:43:54 +0000128 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000129 depends on GREP
Glenn L McGrathc91ce572003-04-27 02:43:54 +0000130 help
Mike Frysinger15ca5862005-07-31 22:41:05 +0000131 fgrep sees the search pattern as a normal string rather than
Glenn L McGrathc91ce572003-04-27 02:43:54 +0000132 regular expressions.
Mike Frysinger15ca5862005-07-31 22:41:05 +0000133 grep -F is always builtin, this just creates the fgrep alias.
Glenn L McGrathc91ce572003-04-27 02:43:54 +0000134
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000135config FEATURE_GREP_CONTEXT
Rob Landley2ec922e2006-04-13 23:22:16 +0000136 bool "Enable before and after context flags (-A, -B and -C)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000137 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000138 depends on GREP
Eric Andersenc9f20d92002-12-05 08:41:41 +0000139 help
Eric Andersene5642112003-07-14 19:37:08 +0000140 Print the specified number of leading (-B) and/or trailing (-A)
141 context surrounding our matching lines.
142 Print the specified number of context lines (-C).
Eric Andersenc9f20d92002-12-05 08:41:41 +0000143
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000144config XARGS
Eric Andersenc9f20d92002-12-05 08:41:41 +0000145 bool "xargs"
146 default n
147 help
Eric Andersen65e20a32003-07-05 07:52:35 +0000148 xargs is used to execute a specified command on
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000149 every item from standard input.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000150
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000151config FEATURE_XARGS_SUPPORT_CONFIRMATION
Rob Landley2ec922e2006-04-13 23:22:16 +0000152 bool "Enable prompt and confirmation option -p"
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000153 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000154 depends on XARGS
Glenn L McGrath99825962003-10-09 11:06:45 +0000155 help
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000156 Support prompt the user about whether to run each command
157 line and read a line from the terminal.
158
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000159config FEATURE_XARGS_SUPPORT_QUOTES
Rob Landley2ec922e2006-04-13 23:22:16 +0000160 bool "Enable support single and double quotes and backslash"
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000161 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000162 depends on XARGS
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000163 help
164 Default xargs unsupport single and double quotes
165 and backslash for can use aruments with spaces.
166
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000167config FEATURE_XARGS_SUPPORT_TERMOPT
Rob Landley2ec922e2006-04-13 23:22:16 +0000168 bool "Enable support options -x"
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000169 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000170 depends on XARGS
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000171 help
172 Enable support exit if the size (see the -s or -n option)
173 is exceeded.
174
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000175config FEATURE_XARGS_SUPPORT_ZERO_TERM
Mike Frysinger441bfbf2006-07-03 05:19:44 +0000176 bool "Enable null terminated option -0"
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000177 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000178 depends on XARGS
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000179 help
180 Enable input filenames are terminated by a null character
181 instead of by whitespace, and the quotes and backslash
182 are not special.
Glenn L McGrath99825962003-10-09 11:06:45 +0000183
Eric Andersenc9f20d92002-12-05 08:41:41 +0000184endmenu