aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cp.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 14:46:56 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 14:46:56 +0100
commitaf3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch)
tree125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/cp.c
parent5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff)
downloadbusybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.gz
busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.bz2
busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.zip
Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/cp.c')
-rw-r--r--coreutils/cp.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c
index 2630c0d59..4ecdaafda 100644
--- a/coreutils/cp.c
+++ b/coreutils/cp.c
@@ -7,13 +7,29 @@
7 * 7 *
8 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
9 */ 9 */
10
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/cp.html */
12
13/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) 10/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
14 * 11 *
15 * Size reduction. 12 * Size reduction.
16 */ 13 */
14//config:config CP
15//config: bool "cp"
16//config: default y
17//config: help
18//config: cp is used to copy files and directories.
19//config:
20//config:config FEATURE_CP_LONG_OPTIONS
21//config: bool "Enable long options for cp"
22//config: default y
23//config: depends on CP && LONG_OPTS
24//config: help
25//config: Enable long options for cp.
26//config: Also add support for --parents option.
27
28//applet:IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp))
29
30//kbuild:lib-$(CONFIG_CP) += cp.o
31
32/* http://www.opengroup.org/onlinepubs/007904975/utilities/cp.html */
17 33
18//usage:#define cp_trivial_usage 34//usage:#define cp_trivial_usage
19//usage: "[OPTIONS] SOURCE... DEST" 35//usage: "[OPTIONS] SOURCE... DEST"