aboutsummaryrefslogtreecommitdiff
path: root/coreutils/mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/mv.c')
-rw-r--r--coreutils/mv.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/coreutils/mv.c b/coreutils/mv.c
index 50571755b..1cc318fd1 100644
--- a/coreutils/mv.c
+++ b/coreutils/mv.c
@@ -7,14 +7,26 @@
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/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) 10/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
12 * 11 *
13 * Size reduction and improved error checking. 12 * Size reduction and improved error checking.
14 */ 13 */
15 14//config:config MV
16#include "libbb.h" 15//config: bool "mv"
17#include "libcoreutils/coreutils.h" 16//config: default y
17//config: help
18//config: mv is used to move or rename files or directories.
19//config:
20//config:config FEATURE_MV_LONG_OPTIONS
21//config: bool "Enable long options"
22//config: default y
23//config: depends on MV && LONG_OPTS
24//config: help
25//config: Support long options for the mv applet.
26
27//applet:IF_MV(APPLET(mv, BB_DIR_BIN, BB_SUID_DROP))
28
29//kbuild:lib-$(CONFIG_MV) += mv.o
18 30
19//usage:#define mv_trivial_usage 31//usage:#define mv_trivial_usage
20//usage: "[-fin] SOURCE DEST\n" 32//usage: "[-fin] SOURCE DEST\n"
@@ -28,6 +40,9 @@
28//usage:#define mv_example_usage 40//usage:#define mv_example_usage
29//usage: "$ mv /tmp/foo /bin/bar\n" 41//usage: "$ mv /tmp/foo /bin/bar\n"
30 42
43#include "libbb.h"
44#include "libcoreutils/coreutils.h"
45
31#if ENABLE_FEATURE_MV_LONG_OPTIONS 46#if ENABLE_FEATURE_MV_LONG_OPTIONS
32static const char mv_longopts[] ALIGN1 = 47static const char mv_longopts[] ALIGN1 =
33 "interactive\0" No_argument "i" 48 "interactive\0" No_argument "i"