aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-19 14:42:23 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-19 14:42:23 +0000
commit96002bba672dc46b26ceea4f6584b5332dca07a6 (patch)
tree4ee023f34778e152289d0cc2f3abe4e2a1a227bf
parentcfc8f596496937e4c08081e15e8c27b8ef166e59 (diff)
downloadbusybox-w32-96002bba672dc46b26ceea4f6584b5332dca07a6.tar.gz
busybox-w32-96002bba672dc46b26ceea4f6584b5332dca07a6.tar.bz2
busybox-w32-96002bba672dc46b26ceea4f6584b5332dca07a6.zip
- cleanup Config.in. Use "select CONFIG_FOO" and add the corresponding
"depends on CONFIG_BAR" instead of the if !CONFIG_FOO ...default y stanza.
-rw-r--r--coreutils/Config.in107
-rw-r--r--shell/Config.in10
2 files changed, 47 insertions, 70 deletions
diff --git a/coreutils/Config.in b/coreutils/Config.in
index 5e1195837..3b742dc6c 100644
--- a/coreutils/Config.in
+++ b/coreutils/Config.in
@@ -79,20 +79,12 @@ config CONFIG_CUT
79 cut is used to print selected parts of lines from 79 cut is used to print selected parts of lines from
80 each file to stdout. 80 each file to stdout.
81 81
82if CONFIG_WATCH 82config CONFIG_DATE
83 config CONFIG_DATE 83 bool "date"
84 default y 84 default n
85 comment "date (forced enabled for use with watch)" 85 help
86endif 86 date is used to set the system date or display the
87 87 current time in the given format.
88if !CONFIG_WATCH
89 config CONFIG_DATE
90 bool "date"
91 default n
92 help
93 date is used to set the system date or display the
94 current time in the given format.
95endif
96 88
97config CONFIG_FEATURE_DATE_ISOFMT 89config CONFIG_FEATURE_DATE_ISOFMT
98 bool " Enable ISO date format output (-I)" 90 bool " Enable ISO date format output (-I)"
@@ -179,19 +171,11 @@ config CONFIG_EXPR
179 expr is used to calculate numbers and print the result 171 expr is used to calculate numbers and print the result
180 to standard output. 172 to standard output.
181 173
182if CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH 174config CONFIG_FALSE
183 config CONFIG_FALSE 175 bool "false"
184 default y 176 default n
185 comment "false (forced enabled for use with shell)" 177 help
186endif 178 false returns an exit code of FALSE (1).
187
188if !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH
189 config CONFIG_FALSE
190 bool "false"
191 default n
192 help
193 false returns an exit code of FALSE (1).
194endif
195 179
196config CONFIG_FOLD 180config CONFIG_FOLD
197 bool "fold" 181 bool "fold"
@@ -305,17 +289,16 @@ config CONFIG_FEATURE_LS_COLOR
305 help 289 help
306 This enables the --color option to ls. 290 This enables the --color option to ls.
307 291
308if CONFIG_FEATURE_LS_COLOR 292config CONFIG_FEATURE_LS_COLOR_IS_DEFAULT
309 config CONFIG_FEATURE_LS_COLOR_IS_DEFAULT 293 bool " Produce colored ls output by default"
310 bool " Produce colored ls output by default" 294 default n
311 default n 295 depends on CONFIG_FEATURE_LS_COLOR
312 help 296 help
313 Saying yes here will turn coloring on by default, 297 Saying yes here will turn coloring on by default,
314 even if no "--color" option is given to the ls command. 298 even if no "--color" option is given to the ls command.
315 This is not recommended, since the colors are not 299 This is not recommended, since the colors are not
316 configurable, and the output may not be legible on 300 configurable, and the output may not be legible on
317 many output screens. 301 many output screens.
318endif
319 302
320config CONFIG_MD5SUM 303config CONFIG_MD5SUM
321 bool "md5sum" 304 bool "md5sum"
@@ -525,21 +508,13 @@ config CONFIG_FEATURE_TEE_USE_BLOCK_IO
525 help 508 help
526 Enable this option for a faster tee, at expense of size. 509 Enable this option for a faster tee, at expense of size.
527 510
528if CONFIG_ASH || CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH 511config CONFIG_TEST
529 config CONFIG_TEST 512 bool "test"
530 default y 513 default n
531 comment "test (forced enabled for use with shell)" 514 help
532endif 515 test is used to check file types and compare values,
533 516 returning an appropriate exit code. The shells (ash
534if !CONFIG_ASH && !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH 517 and bash) have test builtin.
535 config CONFIG_TEST
536 bool "test"
537 default n
538 help
539 test is used to check file types and compare values,
540 returning an appropriate exit code. The shells (ash
541 and bash) have test builtin.
542endif
543 518
544config CONFIG_FEATURE_TEST_64 519config CONFIG_FEATURE_TEST_64
545 bool " Extend test to 64 bit" 520 bool " Extend test to 64 bit"
@@ -581,20 +556,11 @@ config CONFIG_FEATURE_TR_EQUIV
581 useful for cases when no other way of expressing a character 556 useful for cases when no other way of expressing a character
582 is possible. 557 is possible.
583 558
584if CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH 559config CONFIG_TRUE
585 config CONFIG_TRUE 560 bool "true"
586 default y 561 default n
587 comment "true (forced enabled for use with shell)" 562 help
588endif 563 true returns an exit code of TRUE (0).
589
590if !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH
591 config CONFIG_TRUE
592 bool "true"
593 default n
594 help
595 true returns an exit code of TRUE (0).
596
597endif
598 564
599config CONFIG_TTY 565config CONFIG_TTY
600 bool "tty" 566 bool "tty"
@@ -636,6 +602,7 @@ config CONFIG_UUENCODE
636config CONFIG_WATCH 602config CONFIG_WATCH
637 bool "watch" 603 bool "watch"
638 default n 604 default n
605 select CONFIG_DATE
639 help 606 help
640 watch is used to execute a program periodically, showing 607 watch is used to execute a program periodically, showing
641 output to the screen. 608 output to the screen.
@@ -669,7 +636,7 @@ config CONFIG_YES
669 the default string `y'. 636 the default string `y'.
670 637
671comment "Common options for cp and mv" 638comment "Common options for cp and mv"
672 depends on CONFIG_CP || CONFIG_MV 639 depends on CONFIG_CP || CONFIG_MV
673 640
674config CONFIG_FEATURE_PRESERVE_HARDLINKS 641config CONFIG_FEATURE_PRESERVE_HARDLINKS
675 bool " Preserve hard links" 642 bool " Preserve hard links"
@@ -693,7 +660,7 @@ config CONFIG_FEATURE_AUTOWIDTH
693 unable to determine the current screen width. 660 unable to determine the current screen width.
694 661
695comment "Common options for df, du, ls" 662comment "Common options for df, du, ls"
696 depends on CONFIG_DF || CONFIG_DU || CONFIG_LS 663 depends on CONFIG_DF || CONFIG_DU || CONFIG_LS
697 664
698config CONFIG_FEATURE_HUMAN_READABLE 665config CONFIG_FEATURE_HUMAN_READABLE
699 bool " Support for human readable output (example 13k, 23M, 235G)" 666 bool " Support for human readable output (example 13k, 23M, 235G)"
@@ -703,7 +670,7 @@ config CONFIG_FEATURE_HUMAN_READABLE
703 Allow df, du, and ls to have human readable output. 670 Allow df, du, and ls to have human readable output.
704 671
705comment "Common options for md5sum, sha1sum" 672comment "Common options for md5sum, sha1sum"
706 depends on CONFIG_MD5SUM || CONFIG_SHA1SUM 673 depends on CONFIG_MD5SUM || CONFIG_SHA1SUM
707 674
708config CONFIG_FEATURE_MD5_SHA1_SUM_CHECK 675config CONFIG_FEATURE_MD5_SHA1_SUM_CHECK
709 bool " Enable -c, -s and -w options" 676 bool " Enable -c, -s and -w options"
diff --git a/shell/Config.in b/shell/Config.in
index a3620c0e2..7ee8b533d 100644
--- a/shell/Config.in
+++ b/shell/Config.in
@@ -36,6 +36,7 @@ endchoice
36config CONFIG_ASH 36config CONFIG_ASH
37 bool "ash" 37 bool "ash"
38 default y 38 default y
39 select CONFIG_TEST
39 help 40 help
40 Tha 'ash' shell adds about 60k in the default configuration and is 41 Tha 'ash' shell adds about 60k in the default configuration and is
41 the most complete and most pedantically correct shell included with 42 the most complete and most pedantically correct shell included with
@@ -161,6 +162,9 @@ config CONFIG_ASH_EXPAND_PRMT
161config CONFIG_HUSH 162config CONFIG_HUSH
162 bool "hush" 163 bool "hush"
163 default n 164 default n
165 select CONFIG_TRUE
166 select CONFIG_FALSE
167 select CONFIG_TEST
164 help 168 help
165 hush is a very small shell (just 18k) and it has fairly complete 169 hush is a very small shell (just 18k) and it has fairly complete
166 Bourne shell grammar. It even handles all the normal flow control 170 Bourne shell grammar. It even handles all the normal flow control
@@ -175,6 +179,9 @@ config CONFIG_HUSH
175config CONFIG_LASH 179config CONFIG_LASH
176 bool "lash" 180 bool "lash"
177 default n 181 default n
182 select CONFIG_TRUE
183 select CONFIG_FALSE
184 select CONFIG_TEST
178 help 185 help
179 lash is the very smallest shell (adds just 10k) and it is quite 186 lash is the very smallest shell (adds just 10k) and it is quite
180 usable as a command prompt, but it is not suitable for any but the 187 usable as a command prompt, but it is not suitable for any but the
@@ -187,6 +194,9 @@ config CONFIG_LASH
187config CONFIG_MSH 194config CONFIG_MSH
188 bool "msh" 195 bool "msh"
189 default n 196 default n
197 select CONFIG_TRUE
198 select CONFIG_FALSE
199 select CONFIG_TEST
190 help 200 help
191 The minix shell (adds just 30k) is quite complete and handles things 201 The minix shell (adds just 30k) is quite complete and handles things
192 like for/do/done, case/esac and all the things you expect a Bourne 202 like for/do/done, case/esac and all the things you expect a Bourne