summaryrefslogtreecommitdiff
path: root/coreutils/expand.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-11-23 14:46:56 +0100
committerDenys Vlasenko2016-11-23 14:46:56 +0100
commitaf3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch)
tree125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/expand.c
parent5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff)
downloadbusybox-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.zip
busybox-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.gz
Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 8d376ff..bb59af4 100644
--- a/coreutils/expand.c
+++ b/coreutils/expand.c
@@ -20,6 +20,37 @@
*
* Caveat: this versions of expand and unexpand don't accept tab lists.
*/
+//config:config EXPAND
+//config: bool "expand"
+//config: default y
+//config: help
+//config: By default, convert all tabs to spaces.
+//config:
+//config:config FEATURE_EXPAND_LONG_OPTIONS
+//config: bool "Enable long options"
+//config: default y
+//config: depends on EXPAND && LONG_OPTS
+//config: help
+//config: Support long options for the expand applet.
+//config:
+//config:config UNEXPAND
+//config: bool "unexpand"
+//config: default y
+//config: help
+//config: By default, convert only leading sequences of blanks to tabs.
+//config:
+//config:config FEATURE_UNEXPAND_LONG_OPTIONS
+//config: bool "Enable long options"
+//config: default y
+//config: depends on UNEXPAND && LONG_OPTS
+//config: help
+//config: Support long options for the unexpand applet.
+
+//applet:IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP))
+//applet:IF_UNEXPAND(APPLET_ODDNAME(unexpand, expand, BB_DIR_USR_BIN, BB_SUID_DROP, unexpand))
+
+//kbuild:lib-$(CONFIG_EXPAND) += expand.o
+//kbuild:lib-$(CONFIG_UNEXPAND) += expand.o
//usage:#define expand_trivial_usage
//usage: "[-i] [-t N] [FILE]..."