mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
- cleanup Config.in. Use "select CONFIG_FOO" and add the corresponding
"depends on CONFIG_BAR" instead of the if !CONFIG_FOO ...default y stanza.
This commit is contained in:
parent
cfc8f59649
commit
96002bba67
@ -79,20 +79,12 @@ config CONFIG_CUT
|
|||||||
cut is used to print selected parts of lines from
|
cut is used to print selected parts of lines from
|
||||||
each file to stdout.
|
each file to stdout.
|
||||||
|
|
||||||
if CONFIG_WATCH
|
config CONFIG_DATE
|
||||||
config CONFIG_DATE
|
|
||||||
default y
|
|
||||||
comment "date (forced enabled for use with watch)"
|
|
||||||
endif
|
|
||||||
|
|
||||||
if !CONFIG_WATCH
|
|
||||||
config CONFIG_DATE
|
|
||||||
bool "date"
|
bool "date"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
date is used to set the system date or display the
|
date is used to set the system date or display the
|
||||||
current time in the given format.
|
current time in the given format.
|
||||||
endif
|
|
||||||
|
|
||||||
config CONFIG_FEATURE_DATE_ISOFMT
|
config CONFIG_FEATURE_DATE_ISOFMT
|
||||||
bool " Enable ISO date format output (-I)"
|
bool " Enable ISO date format output (-I)"
|
||||||
@ -179,19 +171,11 @@ config CONFIG_EXPR
|
|||||||
expr is used to calculate numbers and print the result
|
expr is used to calculate numbers and print the result
|
||||||
to standard output.
|
to standard output.
|
||||||
|
|
||||||
if CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH
|
config CONFIG_FALSE
|
||||||
config CONFIG_FALSE
|
|
||||||
default y
|
|
||||||
comment "false (forced enabled for use with shell)"
|
|
||||||
endif
|
|
||||||
|
|
||||||
if !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH
|
|
||||||
config CONFIG_FALSE
|
|
||||||
bool "false"
|
bool "false"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
false returns an exit code of FALSE (1).
|
false returns an exit code of FALSE (1).
|
||||||
endif
|
|
||||||
|
|
||||||
config CONFIG_FOLD
|
config CONFIG_FOLD
|
||||||
bool "fold"
|
bool "fold"
|
||||||
@ -305,17 +289,16 @@ config CONFIG_FEATURE_LS_COLOR
|
|||||||
help
|
help
|
||||||
This enables the --color option to ls.
|
This enables the --color option to ls.
|
||||||
|
|
||||||
if CONFIG_FEATURE_LS_COLOR
|
config CONFIG_FEATURE_LS_COLOR_IS_DEFAULT
|
||||||
config CONFIG_FEATURE_LS_COLOR_IS_DEFAULT
|
|
||||||
bool " Produce colored ls output by default"
|
bool " Produce colored ls output by default"
|
||||||
default n
|
default n
|
||||||
|
depends on CONFIG_FEATURE_LS_COLOR
|
||||||
help
|
help
|
||||||
Saying yes here will turn coloring on by default,
|
Saying yes here will turn coloring on by default,
|
||||||
even if no "--color" option is given to the ls command.
|
even if no "--color" option is given to the ls command.
|
||||||
This is not recommended, since the colors are not
|
This is not recommended, since the colors are not
|
||||||
configurable, and the output may not be legible on
|
configurable, and the output may not be legible on
|
||||||
many output screens.
|
many output screens.
|
||||||
endif
|
|
||||||
|
|
||||||
config CONFIG_MD5SUM
|
config CONFIG_MD5SUM
|
||||||
bool "md5sum"
|
bool "md5sum"
|
||||||
@ -525,21 +508,13 @@ config CONFIG_FEATURE_TEE_USE_BLOCK_IO
|
|||||||
help
|
help
|
||||||
Enable this option for a faster tee, at expense of size.
|
Enable this option for a faster tee, at expense of size.
|
||||||
|
|
||||||
if CONFIG_ASH || CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH
|
config CONFIG_TEST
|
||||||
config CONFIG_TEST
|
|
||||||
default y
|
|
||||||
comment "test (forced enabled for use with shell)"
|
|
||||||
endif
|
|
||||||
|
|
||||||
if !CONFIG_ASH && !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH
|
|
||||||
config CONFIG_TEST
|
|
||||||
bool "test"
|
bool "test"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
test is used to check file types and compare values,
|
test is used to check file types and compare values,
|
||||||
returning an appropriate exit code. The shells (ash
|
returning an appropriate exit code. The shells (ash
|
||||||
and bash) have test builtin.
|
and bash) have test builtin.
|
||||||
endif
|
|
||||||
|
|
||||||
config CONFIG_FEATURE_TEST_64
|
config CONFIG_FEATURE_TEST_64
|
||||||
bool " Extend test to 64 bit"
|
bool " Extend test to 64 bit"
|
||||||
@ -581,21 +556,12 @@ config CONFIG_FEATURE_TR_EQUIV
|
|||||||
useful for cases when no other way of expressing a character
|
useful for cases when no other way of expressing a character
|
||||||
is possible.
|
is possible.
|
||||||
|
|
||||||
if CONFIG_HUSH || CONFIG_LASH || CONFIG_MSH
|
config CONFIG_TRUE
|
||||||
config CONFIG_TRUE
|
|
||||||
default y
|
|
||||||
comment "true (forced enabled for use with shell)"
|
|
||||||
endif
|
|
||||||
|
|
||||||
if !CONFIG_HUSH && !CONFIG_LASH && !CONFIG_MSH
|
|
||||||
config CONFIG_TRUE
|
|
||||||
bool "true"
|
bool "true"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
true returns an exit code of TRUE (0).
|
true returns an exit code of TRUE (0).
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
config CONFIG_TTY
|
config CONFIG_TTY
|
||||||
bool "tty"
|
bool "tty"
|
||||||
default n
|
default n
|
||||||
@ -636,6 +602,7 @@ config CONFIG_UUENCODE
|
|||||||
config CONFIG_WATCH
|
config CONFIG_WATCH
|
||||||
bool "watch"
|
bool "watch"
|
||||||
default n
|
default n
|
||||||
|
select CONFIG_DATE
|
||||||
help
|
help
|
||||||
watch is used to execute a program periodically, showing
|
watch is used to execute a program periodically, showing
|
||||||
output to the screen.
|
output to the screen.
|
||||||
|
@ -36,6 +36,7 @@ endchoice
|
|||||||
config CONFIG_ASH
|
config CONFIG_ASH
|
||||||
bool "ash"
|
bool "ash"
|
||||||
default y
|
default y
|
||||||
|
select CONFIG_TEST
|
||||||
help
|
help
|
||||||
Tha 'ash' shell adds about 60k in the default configuration and is
|
Tha 'ash' shell adds about 60k in the default configuration and is
|
||||||
the most complete and most pedantically correct shell included with
|
the most complete and most pedantically correct shell included with
|
||||||
@ -161,6 +162,9 @@ config CONFIG_ASH_EXPAND_PRMT
|
|||||||
config CONFIG_HUSH
|
config CONFIG_HUSH
|
||||||
bool "hush"
|
bool "hush"
|
||||||
default n
|
default n
|
||||||
|
select CONFIG_TRUE
|
||||||
|
select CONFIG_FALSE
|
||||||
|
select CONFIG_TEST
|
||||||
help
|
help
|
||||||
hush is a very small shell (just 18k) and it has fairly complete
|
hush is a very small shell (just 18k) and it has fairly complete
|
||||||
Bourne shell grammar. It even handles all the normal flow control
|
Bourne shell grammar. It even handles all the normal flow control
|
||||||
@ -175,6 +179,9 @@ config CONFIG_HUSH
|
|||||||
config CONFIG_LASH
|
config CONFIG_LASH
|
||||||
bool "lash"
|
bool "lash"
|
||||||
default n
|
default n
|
||||||
|
select CONFIG_TRUE
|
||||||
|
select CONFIG_FALSE
|
||||||
|
select CONFIG_TEST
|
||||||
help
|
help
|
||||||
lash is the very smallest shell (adds just 10k) and it is quite
|
lash is the very smallest shell (adds just 10k) and it is quite
|
||||||
usable as a command prompt, but it is not suitable for any but the
|
usable as a command prompt, but it is not suitable for any but the
|
||||||
@ -187,6 +194,9 @@ config CONFIG_LASH
|
|||||||
config CONFIG_MSH
|
config CONFIG_MSH
|
||||||
bool "msh"
|
bool "msh"
|
||||||
default n
|
default n
|
||||||
|
select CONFIG_TRUE
|
||||||
|
select CONFIG_FALSE
|
||||||
|
select CONFIG_TEST
|
||||||
help
|
help
|
||||||
The minix shell (adds just 30k) is quite complete and handles things
|
The minix shell (adds just 30k) is quite complete and handles things
|
||||||
like for/do/done, case/esac and all the things you expect a Bourne
|
like for/do/done, case/esac and all the things you expect a Bourne
|
||||||
|
Loading…
Reference in New Issue
Block a user