diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-04 19:59:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-04 19:59:49 +0200 |
commit | e4070cb0d7586037c6fcf0f0f00d8d5b97f649d3 (patch) | |
tree | abb5ef8065937f596c1e1e1249dc745c1076465b /coreutils/basename.c | |
parent | 6db13732954b23bd0f6f55c5b3c3941f0547141c (diff) | |
download | busybox-w32-e4070cb0d7586037c6fcf0f0f00d8d5b97f649d3.tar.gz busybox-w32-e4070cb0d7586037c6fcf0f0f00d8d5b97f649d3.tar.bz2 busybox-w32-e4070cb0d7586037c6fcf0f0f00d8d5b97f649d3.zip |
partially migrate coreutils to Config.src and Kbuild.src
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/basename.c')
-rw-r--r-- | coreutils/basename.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index 8a5597e65..f35bdf08e 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c | |||
@@ -20,6 +20,16 @@ | |||
20 | * 3) Save some space by using strcmp(). Calling strncmp() here was silly. | 20 | * 3) Save some space by using strcmp(). Calling strncmp() here was silly. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | //kbuild:lib-$(CONFIG_BASENAME) += basename.o | ||
24 | |||
25 | //config:config BASENAME | ||
26 | //config: bool "basename" | ||
27 | //config: default n | ||
28 | //config: help | ||
29 | //config: basename is used to strip the directory and suffix from filenames, | ||
30 | //config: leaving just the filename itself. Enable this option if you wish | ||
31 | //config: to enable the 'basename' utility. | ||
32 | |||
23 | #include "libbb.h" | 33 | #include "libbb.h" |
24 | 34 | ||
25 | /* This is a NOFORK applet. Be very careful! */ | 35 | /* This is a NOFORK applet. Be very careful! */ |