diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
commit | af3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch) | |
tree | 125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/cat.c | |
parent | 5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff) | |
download | busybox-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/cat.c')
-rw-r--r-- | coreutils/cat.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c index 00c38d486..65978887e 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -6,15 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* BB_AUDIT SUSv3 compliant */ | ||
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cat.html */ | ||
12 | |||
13 | //kbuild:lib-$(CONFIG_CAT) += cat.o | ||
14 | //kbuild:lib-$(CONFIG_MORE) += cat.o # more uses it if stdout isn't a tty | ||
15 | //kbuild:lib-$(CONFIG_LESS) += cat.o # less too | ||
16 | //kbuild:lib-$(CONFIG_CRONTAB) += cat.o # crontab -l | ||
17 | |||
18 | //config:config CAT | 9 | //config:config CAT |
19 | //config: bool "cat" | 10 | //config: bool "cat" |
20 | //config: default y | 11 | //config: default y |
@@ -22,6 +13,13 @@ | |||
22 | //config: cat is used to concatenate files and print them to the standard | 13 | //config: cat is used to concatenate files and print them to the standard |
23 | //config: output. Enable this option if you wish to enable the 'cat' utility. | 14 | //config: output. Enable this option if you wish to enable the 'cat' utility. |
24 | 15 | ||
16 | //applet:IF_CAT(APPLET_NOFORK(cat, cat, BB_DIR_BIN, BB_SUID_DROP, cat)) | ||
17 | |||
18 | //kbuild:lib-$(CONFIG_CAT) += cat.o | ||
19 | |||
20 | /* BB_AUDIT SUSv3 compliant */ | ||
21 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cat.html */ | ||
22 | |||
25 | //usage:#define cat_trivial_usage | 23 | //usage:#define cat_trivial_usage |
26 | //usage: "[FILE]..." | 24 | //usage: "[FILE]..." |
27 | //usage:#define cat_full_usage "\n\n" | 25 | //usage:#define cat_full_usage "\n\n" |