aboutsummaryrefslogtreecommitdiff
path: root/coreutils/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/expand.c')
-rw-r--r--coreutils/expand.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/coreutils/expand.c b/coreutils/expand.c
index 8d376ff4e..bb59af46d 100644
--- a/coreutils/expand.c
+++ b/coreutils/expand.c
@@ -20,6 +20,37 @@
20 * 20 *
21 * Caveat: this versions of expand and unexpand don't accept tab lists. 21 * Caveat: this versions of expand and unexpand don't accept tab lists.
22 */ 22 */
23//config:config EXPAND
24//config: bool "expand"
25//config: default y
26//config: help
27//config: By default, convert all tabs to spaces.
28//config:
29//config:config FEATURE_EXPAND_LONG_OPTIONS
30//config: bool "Enable long options"
31//config: default y
32//config: depends on EXPAND && LONG_OPTS
33//config: help
34//config: Support long options for the expand applet.
35//config:
36//config:config UNEXPAND
37//config: bool "unexpand"
38//config: default y
39//config: help
40//config: By default, convert only leading sequences of blanks to tabs.
41//config:
42//config:config FEATURE_UNEXPAND_LONG_OPTIONS
43//config: bool "Enable long options"
44//config: default y
45//config: depends on UNEXPAND && LONG_OPTS
46//config: help
47//config: Support long options for the unexpand applet.
48
49//applet:IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP))
50//applet:IF_UNEXPAND(APPLET_ODDNAME(unexpand, expand, BB_DIR_USR_BIN, BB_SUID_DROP, unexpand))
51
52//kbuild:lib-$(CONFIG_EXPAND) += expand.o
53//kbuild:lib-$(CONFIG_UNEXPAND) += expand.o
23 54
24//usage:#define expand_trivial_usage 55//usage:#define expand_trivial_usage
25//usage: "[-i] [-t N] [FILE]..." 56//usage: "[-i] [-t N] [FILE]..."