diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-19 14:42:23 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-19 14:42:23 +0000 |
commit | 96002bba672dc46b26ceea4f6584b5332dca07a6 (patch) | |
tree | 4ee023f34778e152289d0cc2f3abe4e2a1a227bf | |
parent | cfc8f596496937e4c08081e15e8c27b8ef166e59 (diff) | |
download | busybox-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.in | 107 | ||||
-rw-r--r-- | shell/Config.in | 10 |
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 | ||
82 | if CONFIG_WATCH | 82 | config 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 |
86 | endif | 86 | date is used to set the system date or display the |
87 | 87 | current time in the given format. | |
88 | if !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. | ||
95 | endif | ||
96 | 88 | ||
97 | config CONFIG_FEATURE_DATE_ISOFMT | 89 | config 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 | ||
182 | if CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH | 174 | config 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 |
186 | endif | 178 | false returns an exit code of FALSE (1). |
187 | |||
188 | if !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). | ||
194 | endif | ||
195 | 179 | ||
196 | config CONFIG_FOLD | 180 | config 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 | ||
308 | if CONFIG_FEATURE_LS_COLOR | 292 | config 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. |
318 | endif | ||
319 | 302 | ||
320 | config CONFIG_MD5SUM | 303 | config 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 | ||
528 | if CONFIG_ASH || CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH | 511 | config 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 |
532 | endif | 515 | test is used to check file types and compare values, |
533 | 516 | returning an appropriate exit code. The shells (ash | |
534 | if !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. | ||
542 | endif | ||
543 | 518 | ||
544 | config CONFIG_FEATURE_TEST_64 | 519 | config 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 | ||
584 | if CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH | 559 | config 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 |
588 | endif | 563 | true returns an exit code of TRUE (0). |
589 | |||
590 | if !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 | |||
597 | endif | ||
598 | 564 | ||
599 | config CONFIG_TTY | 565 | config CONFIG_TTY |
600 | bool "tty" | 566 | bool "tty" |
@@ -636,6 +602,7 @@ config CONFIG_UUENCODE | |||
636 | config CONFIG_WATCH | 602 | config 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 | ||
671 | comment "Common options for cp and mv" | 638 | comment "Common options for cp and mv" |
672 | depends on CONFIG_CP || CONFIG_MV | 639 | depends on CONFIG_CP || CONFIG_MV |
673 | 640 | ||
674 | config CONFIG_FEATURE_PRESERVE_HARDLINKS | 641 | config 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 | ||
695 | comment "Common options for df, du, ls" | 662 | comment "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 | ||
698 | config CONFIG_FEATURE_HUMAN_READABLE | 665 | config 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 | ||
705 | comment "Common options for md5sum, sha1sum" | 672 | comment "Common options for md5sum, sha1sum" |
706 | depends on CONFIG_MD5SUM || CONFIG_SHA1SUM | 673 | depends on CONFIG_MD5SUM || CONFIG_SHA1SUM |
707 | 674 | ||
708 | config CONFIG_FEATURE_MD5_SHA1_SUM_CHECK | 675 | config 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 | |||
36 | config CONFIG_ASH | 36 | config 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 | |||
161 | config CONFIG_HUSH | 162 | config 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 | |||
175 | config CONFIG_LASH | 179 | config 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 | |||
187 | config CONFIG_MSH | 194 | config 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 |