find: add conditional support for -maxdepth and -regex
(needed for Linux 2.6.22-rc4 build) -maxdepth: # size busybox_old busybox_unstripped text data bss dec hex filename 675622 2792 15728 694142 a977e busybox_old 675770 2792 15728 694290 a9812 busybox_unstripped -regex: # size busybox_old busybox_unstripped text data bss dec hex filename 675770 2792 15728 694290 a9812 busybox_old 675894 2792 15728 694414 a988e busybox_unstripped
This commit is contained in:
@@ -57,8 +57,14 @@ config FEATURE_FIND_XDEV
|
||||
default y
|
||||
depends on FIND
|
||||
help
|
||||
This option will allow find to restrict searches to a single
|
||||
filesystem.
|
||||
This option allows find to restrict searches to a single filesystem.
|
||||
|
||||
config FEATURE_FIND_MAXDEPTH
|
||||
bool "Enable -maxdepth N option"
|
||||
default y
|
||||
depends on FIND
|
||||
help
|
||||
This option enables -maxdepth N option.
|
||||
|
||||
config FEATURE_FIND_NEWER
|
||||
bool "Enable -newer option for comparing file mtimes"
|
||||
@@ -149,7 +155,14 @@ config FEATURE_FIND_PATH
|
||||
default y
|
||||
depends on FIND
|
||||
help
|
||||
The -path option matches whole pathnames instead of just filenames.
|
||||
The -path option matches whole pathname instead of just filename.
|
||||
|
||||
config FEATURE_FIND_REGEX
|
||||
bool "Enable -regex: match pathname to regex"
|
||||
default y
|
||||
depends on FIND
|
||||
help
|
||||
The -regex option matches whole pathname against regular expression.
|
||||
|
||||
config GREP
|
||||
bool "grep"
|
||||
|
||||
Reference in New Issue
Block a user