aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
commit7d219aab70e6951ab82c27c202cac05016696723 (patch)
tree4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /findutils
parent8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff)
downloadbusybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.gz
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.bz2
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.zip
build system overhaul
Diffstat (limited to 'findutils')
-rw-r--r--findutils/Config.in70
-rw-r--r--findutils/Kbuild10
-rw-r--r--findutils/Makefile23
-rw-r--r--findutils/Makefile.in31
4 files changed, 45 insertions, 89 deletions
diff --git a/findutils/Config.in b/findutils/Config.in
index 12387a44e..5a4476a98 100644
--- a/findutils/Config.in
+++ b/findutils/Config.in
@@ -5,152 +5,152 @@
5 5
6menu "Finding Utilities" 6menu "Finding Utilities"
7 7
8config CONFIG_FIND 8config FIND
9 bool "find" 9 bool "find"
10 default n 10 default n
11 help 11 help
12 find is used to search your system to find specified files. 12 find is used to search your system to find specified files.
13 13
14config CONFIG_FEATURE_FIND_PRINT0 14config FEATURE_FIND_PRINT0
15 bool "Enable -print0 option" 15 bool "Enable -print0 option"
16 default y 16 default y
17 depends on CONFIG_FIND 17 depends on FIND
18 help 18 help
19 Causes output names to be separated by a null character 19 Causes output names to be separated by a null character
20 rather than a newline. This allows names that contain 20 rather than a newline. This allows names that contain
21 newlines and other whitespace to be more easily 21 newlines and other whitespace to be more easily
22 interpreted by other programs. 22 interpreted by other programs.
23 23
24config CONFIG_FEATURE_FIND_MTIME 24config FEATURE_FIND_MTIME
25 bool "Enable modified time matching (-mtime) option" 25 bool "Enable modified time matching (-mtime) option"
26 default y 26 default y
27 depends on CONFIG_FIND 27 depends on FIND
28 help 28 help
29 Allow searching based on the modification time of 29 Allow searching based on the modification time of
30 files, in days. 30 files, in days.
31 31
32config CONFIG_FEATURE_FIND_MMIN 32config FEATURE_FIND_MMIN
33 bool "Enable modified time matching (-min) option" 33 bool "Enable modified time matching (-min) option"
34 default y 34 default y
35 depends on CONFIG_FIND 35 depends on FIND
36 help 36 help
37 Allow searching based on the modification time of 37 Allow searching based on the modification time of
38 files, in minutes. 38 files, in minutes.
39 39
40config CONFIG_FEATURE_FIND_PERM 40config FEATURE_FIND_PERM
41 bool "Enable permissions matching (-perm) option" 41 bool "Enable permissions matching (-perm) option"
42 default y 42 default y
43 depends on CONFIG_FIND 43 depends on FIND
44 help 44 help
45 Enable searching based on file permissions. 45 Enable searching based on file permissions.
46 46
47config CONFIG_FEATURE_FIND_TYPE 47config FEATURE_FIND_TYPE
48 bool "Enable filetype matching (-type) option" 48 bool "Enable filetype matching (-type) option"
49 default y 49 default y
50 depends on CONFIG_FIND 50 depends on FIND
51 help 51 help
52 Enable searching based on file type (file, 52 Enable searching based on file type (file,
53 directory, socket, device, etc.). 53 directory, socket, device, etc.).
54 54
55config CONFIG_FEATURE_FIND_XDEV 55config FEATURE_FIND_XDEV
56 bool "Enable stay in filesystem (-xdev) option" 56 bool "Enable stay in filesystem (-xdev) option"
57 default y 57 default y
58 depends on CONFIG_FIND 58 depends on FIND
59 help 59 help
60 This option will allow find to restrict searches to a single 60 This option will allow find to restrict searches to a single
61 filesystem. 61 filesystem.
62 62
63config CONFIG_FEATURE_FIND_NEWER 63config FEATURE_FIND_NEWER
64 bool "Enable -newer option for comparing file mtimes" 64 bool "Enable -newer option for comparing file mtimes"
65 default y 65 default y
66 depends on CONFIG_FIND 66 depends on FIND
67 help 67 help
68 Support the 'find -newer' option for finding any files which have 68 Support the 'find -newer' option for finding any files which have
69 a modified time that is more recent than the specified FILE. 69 a modified time that is more recent than the specified FILE.
70 70
71config CONFIG_FEATURE_FIND_INUM 71config FEATURE_FIND_INUM
72 bool "Enable inode number matching (-inum) option" 72 bool "Enable inode number matching (-inum) option"
73 default y 73 default y
74 depends on CONFIG_FIND 74 depends on FIND
75 help 75 help
76 Support the 'find -inum' option for searching by inode number. 76 Support the 'find -inum' option for searching by inode number.
77 77
78config CONFIG_FEATURE_FIND_EXEC 78config FEATURE_FIND_EXEC
79 bool "Enable (-exec) option allowing execution of commands" 79 bool "Enable (-exec) option allowing execution of commands"
80 default y 80 default y
81 depends on CONFIG_FIND 81 depends on FIND
82 help 82 help
83 Support the 'find -exec' option for executing commands based upon 83 Support the 'find -exec' option for executing commands based upon
84 the files matched. 84 the files matched.
85 85
86config CONFIG_GREP 86config GREP
87 bool "grep" 87 bool "grep"
88 default n 88 default n
89 help 89 help
90 grep is used to search files for a specified pattern. 90 grep is used to search files for a specified pattern.
91 91
92config CONFIG_FEATURE_GREP_EGREP_ALIAS 92config FEATURE_GREP_EGREP_ALIAS
93 bool "Support extended regular expressions (egrep & grep -E)" 93 bool "Support extended regular expressions (egrep & grep -E)"
94 default y 94 default y
95 depends on CONFIG_GREP 95 depends on GREP
96 help 96 help
97 Enabled support for extended regular expressions. Extended 97 Enabled support for extended regular expressions. Extended
98 regular expressions allow for alternation (foo|bar), grouping, 98 regular expressions allow for alternation (foo|bar), grouping,
99 and various repetition operators. 99 and various repetition operators.
100 100
101config CONFIG_FEATURE_GREP_FGREP_ALIAS 101config FEATURE_GREP_FGREP_ALIAS
102 bool "Alias fgrep to grep -F" 102 bool "Alias fgrep to grep -F"
103 default y 103 default y
104 depends on CONFIG_GREP 104 depends on GREP
105 help 105 help
106 fgrep sees the search pattern as a normal string rather than 106 fgrep sees the search pattern as a normal string rather than
107 regular expressions. 107 regular expressions.
108 grep -F is always builtin, this just creates the fgrep alias. 108 grep -F is always builtin, this just creates the fgrep alias.
109 109
110config CONFIG_FEATURE_GREP_CONTEXT 110config FEATURE_GREP_CONTEXT
111 bool "Enable before and after context flags (-A, -B and -C)" 111 bool "Enable before and after context flags (-A, -B and -C)"
112 default y 112 default y
113 depends on CONFIG_GREP 113 depends on GREP
114 help 114 help
115 Print the specified number of leading (-B) and/or trailing (-A) 115 Print the specified number of leading (-B) and/or trailing (-A)
116 context surrounding our matching lines. 116 context surrounding our matching lines.
117 Print the specified number of context lines (-C). 117 Print the specified number of context lines (-C).
118 118
119config CONFIG_XARGS 119config XARGS
120 bool "xargs" 120 bool "xargs"
121 default n 121 default n
122 help 122 help
123 xargs is used to execute a specified command on 123 xargs is used to execute a specified command on
124 every item from standard input. 124 every item from standard input.
125 125
126config CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION 126config FEATURE_XARGS_SUPPORT_CONFIRMATION
127 bool "Enable prompt and confirmation option -p" 127 bool "Enable prompt and confirmation option -p"
128 default n 128 default n
129 depends on CONFIG_XARGS 129 depends on XARGS
130 help 130 help
131 Support prompt the user about whether to run each command 131 Support prompt the user about whether to run each command
132 line and read a line from the terminal. 132 line and read a line from the terminal.
133 133
134config CONFIG_FEATURE_XARGS_SUPPORT_QUOTES 134config FEATURE_XARGS_SUPPORT_QUOTES
135 bool "Enable support single and double quotes and backslash" 135 bool "Enable support single and double quotes and backslash"
136 default n 136 default n
137 depends on CONFIG_XARGS 137 depends on XARGS
138 help 138 help
139 Default xargs unsupport single and double quotes 139 Default xargs unsupport single and double quotes
140 and backslash for can use aruments with spaces. 140 and backslash for can use aruments with spaces.
141 141
142config CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT 142config FEATURE_XARGS_SUPPORT_TERMOPT
143 bool "Enable support options -x" 143 bool "Enable support options -x"
144 default n 144 default n
145 depends on CONFIG_XARGS 145 depends on XARGS
146 help 146 help
147 Enable support exit if the size (see the -s or -n option) 147 Enable support exit if the size (see the -s or -n option)
148 is exceeded. 148 is exceeded.
149 149
150config CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM 150config FEATURE_XARGS_SUPPORT_ZERO_TERM
151 bool "Enable null terminated option -0" 151 bool "Enable null terminated option -0"
152 default n 152 default n
153 depends on CONFIG_XARGS 153 depends on XARGS
154 help 154 help
155 Enable input filenames are terminated by a null character 155 Enable input filenames are terminated by a null character
156 instead of by whitespace, and the quotes and backslash 156 instead of by whitespace, and the quotes and backslash
diff --git a/findutils/Kbuild b/findutils/Kbuild
new file mode 100644
index 000000000..7b504bacf
--- /dev/null
+++ b/findutils/Kbuild
@@ -0,0 +1,10 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7lib-y:=
8lib-$(CONFIG_FIND) += find.o
9lib-$(CONFIG_GREP) += grep.o
10lib-$(CONFIG_XARGS) += xargs.o
diff --git a/findutils/Makefile b/findutils/Makefile
deleted file mode 100644
index f152c8126..000000000
--- a/findutils/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13srcdir=$(top_srcdir)/findutils
14FINDUTILS_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include $(srcdir)/Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
22 rm -f *.o *.a $(AR_TARGET)
23
diff --git a/findutils/Makefile.in b/findutils/Makefile.in
deleted file mode 100644
index 25a2d38d3..000000000
--- a/findutils/Makefile.in
+++ /dev/null
@@ -1,31 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7FINDUTILS_AR:=findutils.a
8ifndef $(FINDUTILS_DIR)
9FINDUTILS_DIR:=$(top_builddir)/findutils/
10endif
11srcdir=$(top_srcdir)/findutils
12
13FINDUTILS-y:=
14FINDUTILS-$(CONFIG_FIND) += find.o
15FINDUTILS-$(CONFIG_GREP) += grep.o
16FINDUTILS-$(CONFIG_XARGS) += xargs.o
17
18ifneq ($(strip $(FINDUTILS-y)),)
19libraries-y+=$(FINDUTILS_DIR)$(FINDUTILS_AR)
20endif
21
22FINDUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(FINDUTILS-y))
23FINDUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
24APPLET_SRC-y+=$(FINDUTILS_SRC-y)
25APPLET_SRC-a+=$(FINDUTILS_SRC-a)
26
27$(FINDUTILS_DIR)$(FINDUTILS_AR): $(patsubst %,$(FINDUTILS_DIR)%, $(FINDUTILS-y))
28 $(do_ar)
29
30$(FINDUTILS_DIR)%.o: $(srcdir)/%.c
31 $(compile.c)