summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-02-15 10:53:40 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-02-15 10:53:40 +0000
commit3238ea1673d55b37abeba066826963101e6af020 (patch)
treedf76d70db494b6f968a007b750aff0111805c742 /coreutils
parent858fad722fa949f057dbc5a5e7dd63eef8954187 (diff)
downloadbusybox-w32-3238ea1673d55b37abeba066826963101e6af020.tar.gz
busybox-w32-3238ea1673d55b37abeba066826963101e6af020.tar.bz2
busybox-w32-3238ea1673d55b37abeba066826963101e6af020.zip
Merge fileutils, textutils and shellutils into coreuils
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/Config.in504
-rw-r--r--coreutils/Makefile30
-rw-r--r--coreutils/Makefile.in90
3 files changed, 624 insertions, 0 deletions
diff --git a/coreutils/Config.in b/coreutils/Config.in
new file mode 100644
index 000000000..6ee319a0d
--- /dev/null
+++ b/coreutils/Config.in
@@ -0,0 +1,504 @@
1#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "Coreutils"
7
8config CONFIG_BASENAME
9 bool "basename"
10 default n
11 help
12 Please submit a patch to add help text for this item.
13
14config CONFIG_CAL
15 bool "cal"
16 default n
17 help
18 Please submit a patch to add help text for this item.
19
20config CONFIG_CAT
21 bool "cat"
22 default n
23 help
24 Please submit a patch to add help text for this item.
25
26config CONFIG_CHGRP
27 bool "chgrp"
28 default n
29 help
30 Please submit a patch to add help text for this item.
31
32config CONFIG_CHMOD
33 bool "chmod"
34 default n
35 help
36 Please submit a patch to add help text for this item.
37
38config CONFIG_CHOWN
39 bool "chown"
40 default n
41 help
42 Please submit a patch to add help text for this item.
43
44config CONFIG_CHROOT
45 bool "chroot"
46 default n
47 help
48 Please submit a patch to add help text for this item.
49
50config CONFIG_CMP
51 bool "cmp"
52 default n
53 help
54 Please submit a patch to add help text for this item.
55
56config CONFIG_CP
57 bool "cp"
58 default n
59 help
60 Please submit a patch to add help text for this item.
61
62config CONFIG_CUT
63 bool "cut"
64 default n
65 help
66 Please submit a patch to add help text for this item.
67
68if CONFIG_WATCH
69 config CONFIG_DATE
70 default y
71 comment "date (forced enabled for use with watch)"
72endif
73
74if !CONFIG_WATCH
75 config CONFIG_DATE
76 bool "date"
77 default n
78 help
79 Please submit a patch to add help text for this item.
80endif
81
82config CONFIG_FEATURE_DATE_ISOFMT
83 bool " Enable ISO date format output (-I)"
84 default y
85 depends on CONFIG_DATE
86 help
87 Please submit a patch to add help text for this item.
88
89config CONFIG_DD
90 bool "dd"
91 default n
92 help
93 Please submit a patch to add help text for this item.
94
95config CONFIG_DF
96 bool "df"
97 default n
98 help
99 Please submit a patch to add help text for this item.
100
101config CONFIG_DIRNAME
102 bool "dirname"
103 default n
104 help
105 Please submit a patch to add help text for this item.
106
107config CONFIG_DOS2UNIX
108 bool "dos2unix/unix2dos"
109 default n
110 help
111 Please submit a patch to add help text for this item.
112
113config CONFIG_DU
114 bool "du"
115 default n
116 help
117 Please submit a patch to add help text for this item.
118
119config CONFIG_ECHO
120 bool "echo"
121 default n
122 help
123 Please submit a patch to add help text for this item.
124
125config CONFIG_ENV
126 bool "env"
127 default n
128 help
129 Please submit a patch to add help text for this item.
130
131config CONFIG_EXPR
132 bool "expr"
133 default n
134 help
135 Please submit a patch to add help text for this item.
136
137if CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH
138 config CONFIG_FALSE
139 default y
140 comment "false (forced enabled for use with shell)"
141endif
142
143if !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH
144 config CONFIG_FALSE
145 bool "false"
146 default n
147 help
148 Please submit a patch to add help text for this item.
149endif
150
151config CONFIG_HEAD
152 bool "head"
153 default n
154 help
155 Please submit a patch to add help text for this item.
156
157config CONFIG_HOSTID
158 bool "hostid"
159 default n
160 help
161 Please submit a patch to add help text for this item.
162
163config CONFIG_ID
164 bool "id"
165 default n
166 help
167 Please submit a patch to add help text for this item.
168
169config CONFIG_LENGTH
170 bool "length"
171 default n
172 help
173 Please submit a patch to add help text for this item.
174
175config CONFIG_LN
176 bool "ln"
177 default n
178 help
179 Please submit a patch to add help text for this item.
180
181config CONFIG_LOGNAME
182 bool "logname"
183 default n
184 help
185 Please submit a patch to add help text for this item.
186
187config CONFIG_LS
188 bool "ls"
189 default n
190 help
191 Please submit a patch to add help text for this item.
192
193config CONFIG_FEATURE_LS_FILETYPES
194 bool " Enable filetyping options (-p and -F)"
195 default y
196 depends on CONFIG_LS
197 help
198 Please submit a patch to add help text for this item.
199
200config CONFIG_FEATURE_LS_FOLLOWLINKS
201 bool " Enable symlinks dereferencing (-L)"
202 default y
203 depends on CONFIG_LS
204 help
205 Please submit a patch to add help text for this item.
206
207config CONFIG_FEATURE_LS_RECURSIVE
208 bool " Enable recursion (-R)"
209 default y
210 depends on CONFIG_LS
211 help
212 Please submit a patch to add help text for this item.
213
214config CONFIG_FEATURE_LS_SORTFILES
215 bool " Sort the file names"
216 default y
217 depends on CONFIG_LS
218 help
219 Please submit a patch to add help text for this item.
220
221config CONFIG_FEATURE_LS_TIMESTAMPS
222 bool " Show file timestamps"
223 default y
224 depends on CONFIG_LS
225 help
226 Please submit a patch to add help text for this item.
227
228config CONFIG_FEATURE_LS_USERNAME
229 bool " Show username/groupnames"
230 default y
231 depends on CONFIG_LS
232 help
233 Please submit a patch to add help text for this item.
234
235config CONFIG_FEATURE_LS_COLOR
236 bool " Use color to identify file types"
237 default y
238 depends on CONFIG_LS
239 help
240 Please submit a patch to add help text for this item.
241
242config CONFIG_MD5SUM
243 bool "md5sum"
244 default n
245 help
246 Please submit a patch to add help text for this item.
247
248config CONFIG_MKDIR
249 bool "mkdir"
250 default n
251 help
252 Please submit a patch to add help text for this item.
253
254config CONFIG_MKFIFO
255 bool "mkfifo"
256 default n
257 help
258 Please submit a patch to add help text for this item.
259
260config CONFIG_MKNOD
261 bool "mknod"
262 default n
263 help
264 Please submit a patch to add help text for this item.
265
266config CONFIG_MV
267 bool "mv"
268 default n
269 help
270 Please submit a patch to add help text for this item.
271
272config CONFIG_OD
273 bool "od"
274 default n
275 help
276 Please submit a patch to add help text for this item.
277
278config CONFIG_PRINTF
279 bool "printf"
280 default n
281 help
282 Please submit a patch to add help text for this item.
283
284config CONFIG_PWD
285 bool "pwd"
286 default n
287 help
288 Please submit a patch to add help text for this item.
289
290config CONFIG_REALPATH
291 bool "realpath"
292 default n
293 help
294 Return the canonicalized absolute pathname.
295 This isnt provided by GNU shellutils, but where else does it belong.
296
297config CONFIG_RM
298 bool "rm"
299 default n
300 help
301 Please submit a patch to add help text for this item.
302
303config CONFIG_RMDIR
304 bool "rmdir"
305 default n
306 help
307 Please submit a patch to add help text for this item.
308
309config CONFIG_SLEEP
310 bool "sleep"
311 default n
312 help
313 Please submit a patch to add help text for this item.
314
315config CONFIG_SORT
316 bool "sort"
317 default n
318 help
319 Please submit a patch to add help text for this item.
320
321config CONFIG_FEATURE_SORT_REVERSE
322 bool " Enable reverse sort"
323 default y
324 depends on CONFIG_SORT
325 help
326 Please submit a patch to add help text for this item.
327
328config CONFIG_FEATURE_SORT_UNIQUE
329 bool " Enable unique sort"
330 default y
331 depends on CONFIG_SORT
332 help
333 Please submit a patch to add help text for this item.
334
335config CONFIG_STTY
336 bool "stty"
337 default n
338 help
339 Please submit a patch to add help text for this item.
340
341config CONFIG_SYNC
342 bool "sync"
343 default n
344 help
345 Please submit a patch to add help text for this item.
346
347config CONFIG_TAIL
348 bool "tail"
349 default n
350 help
351 Please submit a patch to add help text for this item.
352
353config CONFIG_FEATURE_FANCY_TAIL
354 bool " Enable extra tail options (-c, -q, -s, and -v)"
355 default y
356 depends on CONFIG_TAIL
357 help
358 Please submit a patch to add help text for this item.
359
360config CONFIG_TEE
361 bool "tee"
362 default n
363 help
364 Please submit a patch to add help text for this item.
365
366if CONFIG_ASH || CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH
367 config CONFIG_TEST
368 default y
369 comment "test (forced enabled for use with shell)"
370endif
371
372if !CONFIG_ASH && !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH
373 config CONFIG_TEST
374 bool "test"
375 default n
376 help
377 Please submit a patch to add help text for this item.
378endif
379
380config CONFIG_TOUCH
381 bool "touch"
382 default n
383 help
384 Please submit a patch to add help text for this item.
385
386config CONFIG_TR
387 bool "tr"
388 default n
389 help
390 Please submit a patch to add help text for this item.
391
392if CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH
393 config CONFIG_TRUE
394 default y
395 comment "true (forced enabled for use with shell)"
396endif
397
398if !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH
399 config CONFIG_TRUE
400 bool "true"
401 default n
402 help
403 Please submit a patch to add help text for this item.
404endif
405
406config CONFIG_TTY
407 bool "tty"
408 default n
409 help
410 Please submit a patch to add help text for this item.
411
412config CONFIG_UNAME
413 bool "uname"
414 default n
415 help
416 Please submit a patch to add help text for this item.
417
418config CONFIG_UNIQ
419 bool "uniq"
420 default n
421 help
422 Please submit a patch to add help text for this item.
423
424config CONFIG_USLEEP
425 bool "usleep"
426 default n
427 help
428 Please submit a patch to add help text for this item.
429
430config CONFIG_UUDECODE
431 bool "uudecode"
432 default n
433 help
434 Please submit a patch to add help text for this item.
435
436config CONFIG_UUENCODE
437 bool "uuencode"
438 default n
439 help
440 Please submit a patch to add help text for this item.
441
442config CONFIG_WATCH
443 bool "watch"
444 default n
445 help
446 Please submit a patch to add help text for this item.
447
448config CONFIG_WC
449 bool "wc"
450 default n
451 help
452 Please submit a patch to add help text for this item.
453
454config CONFIG_WHO
455 bool "who"
456 default n
457 help
458 Please submit a patch to add help text for this item.
459
460config CONFIG_WHOAMI
461 bool "whoami"
462 default n
463 help
464 Please submit a patch to add help text for this item.
465
466config CONFIG_YES
467 bool "yes"
468 default n
469 help
470 Please submit a patch to add help text for this item.
471
472
473comment "Common options for cp and mv"
474 depends on CONFIG_CP || CONFIG_MV
475
476config CONFIG_FEATURE_PRESERVE_HARDLINKS
477 bool " Preserve hard links"
478 default n
479 depends on CONFIG_CP || CONFIG_MV
480 help
481 Please submit a patch to add help text for this item.
482
483comment "Common options for ls and more"
484 depends on CONFIG_LS || CONFIG_MORE
485
486config CONFIG_FEATURE_AUTOWIDTH
487 bool " Calculate terminal & column widths"
488 default n
489 depends on CONFIG_LS || CONFIG_MORE
490 help
491 Please submit a patch to add help text for this item.
492
493
494comment "Common options for df, du, ls"
495 depends on CONFIG_DF || CONFIG_DU || CONFIG_LS
496
497config CONFIG_FEATURE_HUMAN_READABLE
498 bool " Support for human readable output (example 13k, 23M, 235G)"
499 default n
500 depends on CONFIG_DF || CONFIG_DU || CONFIG_LS
501 help
502 Please submit a patch to add help text for this item.
503
504endmenu
diff --git a/coreutils/Makefile b/coreutils/Makefile
new file mode 100644
index 000000000..2228c26e8
--- /dev/null
+++ b/coreutils/Makefile
@@ -0,0 +1,30 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2002 Erik Andersen <andersee@debian.org>
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18#
19
20TOPDIR:= ../
21SHELLUTILS_DIR:=./
22include $(TOPDIR).config
23include $(TOPDIR)Rules.mak
24include Makefile.in
25all: $(libraries-y)
26-include $(TOPDIR).depend
27
28clean:
29 rm -f *.o *.a $(AR_TARGET)
30
diff --git a/coreutils/Makefile.in b/coreutils/Makefile.in
new file mode 100644
index 000000000..78ee307ec
--- /dev/null
+++ b/coreutils/Makefile.in
@@ -0,0 +1,90 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2002 Erik Andersen <andersee@debian.org>
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18#
19
20COREUTILS_AR:=coreutils.a
21ifndef $(COREUTILS_DIR)
22COREUTILS_DIR:=$(TOPDIR)coreutils/
23endif
24
25COREUTILS-y:=
26COREUTILS-$(CONFIG_BASENAME) += basename.o
27COREUTILS-$(CONFIG_CAL) += cal.o
28COREUTILS-$(CONFIG_CAT) += cat.o
29COREUTILS-$(CONFIG_CHGRP) += chgrp.o
30COREUTILS-$(CONFIG_CHMOD) += chmod.o
31COREUTILS-$(CONFIG_CHOWN) += chown.o
32COREUTILS-$(CONFIG_CHROOT) += chroot.o
33COREUTILS-$(CONFIG_CMP) += cmp.o
34COREUTILS-$(CONFIG_CP) += cp.o
35COREUTILS-$(CONFIG_CUT) += cut.o
36COREUTILS-$(CONFIG_DATE) += date.o
37COREUTILS-$(CONFIG_DD) += dd.o
38COREUTILS-$(CONFIG_DF) += df.o
39COREUTILS-$(CONFIG_DIRNAME) += dirname.o
40COREUTILS-$(CONFIG_DOS2UNIX) += dos2unix.o
41COREUTILS-$(CONFIG_DU) += du.o
42COREUTILS-$(CONFIG_ECHO) += echo.o
43COREUTILS-$(CONFIG_ENV) += env.o
44COREUTILS-$(CONFIG_EXPR) += expr.o
45COREUTILS-$(CONFIG_FALSE) += false.o
46COREUTILS-$(CONFIG_HEAD) += head.o
47COREUTILS-$(CONFIG_HOSTID) += hostid.o
48COREUTILS-$(CONFIG_ID) += id.o
49COREUTILS-$(CONFIG_LENGTH) += length.o
50COREUTILS-$(CONFIG_LN) += ln.o
51COREUTILS-$(CONFIG_LOGNAME) += logname.o
52COREUTILS-$(CONFIG_LS) += ls.o
53COREUTILS-$(CONFIG_MD5SUM) += md5sum.o
54COREUTILS-$(CONFIG_MKDIR) += mkdir.o
55COREUTILS-$(CONFIG_MKFIFO) += mkfifo.o
56COREUTILS-$(CONFIG_MKNOD) += mknod.o
57COREUTILS-$(CONFIG_MV) += mv.o
58COREUTILS-$(CONFIG_OD) += od.o
59COREUTILS-$(CONFIG_PRINTF) += printf.o
60COREUTILS-$(CONFIG_PWD) += pwd.o
61COREUTILS-$(CONFIG_REALPATH) += realpath.o
62COREUTILS-$(CONFIG_RM) += rm.o
63COREUTILS-$(CONFIG_RMDIR) += rmdir.o
64COREUTILS-$(CONFIG_SLEEP) += sleep.o
65COREUTILS-$(CONFIG_SORT) += sort.o
66COREUTILS-$(CONFIG_STTY) += stty.o
67COREUTILS-$(CONFIG_SYNC) += sync.o
68COREUTILS-$(CONFIG_TAIL) += tail.o
69COREUTILS-$(CONFIG_TEE) += tee.o
70COREUTILS-$(CONFIG_TEST) += test.o
71COREUTILS-$(CONFIG_TOUCH) += touch.o
72COREUTILS-$(CONFIG_TR) += tr.o
73COREUTILS-$(CONFIG_TRUE) += true.o
74COREUTILS-$(CONFIG_TTY) += tty.o
75COREUTILS-$(CONFIG_UNAME) += uname.o
76COREUTILS-$(CONFIG_UNIQ) += uniq.o
77COREUTILS-$(CONFIG_USLEEP) += usleep.o
78COREUTILS-$(CONFIG_UUDECODE) += uudecode.o
79COREUTILS-$(CONFIG_UUENCODE) += uuencode.o
80COREUTILS-$(CONFIG_WATCH) += watch.o
81COREUTILS-$(CONFIG_WC) += wc.o
82COREUTILS-$(CONFIG_WHO) += who.o
83COREUTILS-$(CONFIG_WHOAMI) += whoami.o
84COREUTILS-$(CONFIG_YES) += yes.o
85
86libraries-y+=$(COREUTILS_DIR)$(COREUTILS_AR)
87
88$(COREUTILS_DIR)$(COREUTILS_AR): $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y))
89 $(AR) -ro $@ $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y))
90