From 7fb68f199f037cb69363c8df5c934a27adc699f7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 9 May 2010 04:22:48 +0200 Subject: make it possible to keep Config/Kbuild snippets in *.c files Signed-off-by: Denys Vlasenko --- findutils/xargs.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'findutils/xargs.c') diff --git a/findutils/xargs.c b/findutils/xargs.c index 3785f1ec0..c55ac5724 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c @@ -17,6 +17,47 @@ * */ +//kbuild:lib-$(CONFIG_XARGS) += xargs.o +//config: +//config:config XARGS +//config: bool "xargs" +//config: default n +//config: help +//config: xargs is used to execute a specified command for +//config: every item from standard input. +//config: +//config:config FEATURE_XARGS_SUPPORT_CONFIRMATION +//config: bool "Enable -p: prompt and confirmation" +//config: default n +//config: depends on XARGS +//config: help +//config: Support -p: prompt the user whether to run each command +//config: line and read a line from the terminal. +//config: +//config:config FEATURE_XARGS_SUPPORT_QUOTES +//config: bool "Enable single and double quotes and backslash" +//config: default n +//config: depends on XARGS +//config: help +//config: Support quoting in the input. +//config: +//config:config FEATURE_XARGS_SUPPORT_TERMOPT +//config: bool "Enable -x: exit if -s or -n is exceeded" +//config: default n +//config: depends on XARGS +//config: help +//config: Support -x: exit if the command size (see the -s or -n option) +//config: is exceeded. +//config: +//config:config FEATURE_XARGS_SUPPORT_ZERO_TERM +//config: bool "Enable -0: NUL-terminated input" +//config: default n +//config: depends on XARGS +//config: help +//config: Support -0: input items are terminated by a NUL character +//config: instead of whitespace, and the quotes and backslash +//config: are not special. + #include "libbb.h" /* This is a NOEXEC applet. Be very careful! */ -- cgit v1.2.3