diff options
Diffstat (limited to 'editors/cmp.c')
-rw-r--r-- | editors/cmp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/editors/cmp.c b/editors/cmp.c index ec86c0ce2..2a410fdec 100644 --- a/editors/cmp.c +++ b/editors/cmp.c | |||
@@ -6,10 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */ | ||
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */ | ||
12 | |||
13 | //config:config CMP | 9 | //config:config CMP |
14 | //config: bool "cmp (5.4 kb)" | 10 | //config: bool "cmp (5.4 kb)" |
15 | //config: default y | 11 | //config: default y |
@@ -17,10 +13,10 @@ | |||
17 | //config: cmp is used to compare two files and returns the result | 13 | //config: cmp is used to compare two files and returns the result |
18 | //config: to standard output. | 14 | //config: to standard output. |
19 | 15 | ||
20 | //kbuild:lib-$(CONFIG_CMP) += cmp.o | ||
21 | |||
22 | //applet:IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP)) | 16 | //applet:IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP)) |
23 | 17 | ||
18 | //kbuild:lib-$(CONFIG_CMP) += cmp.o | ||
19 | |||
24 | //usage:#define cmp_trivial_usage | 20 | //usage:#define cmp_trivial_usage |
25 | //usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" | 21 | //usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" |
26 | //usage:#define cmp_full_usage "\n\n" | 22 | //usage:#define cmp_full_usage "\n\n" |
@@ -29,6 +25,9 @@ | |||
29 | //usage: "\n for all differing bytes" | 25 | //usage: "\n for all differing bytes" |
30 | //usage: "\n -s Quiet" | 26 | //usage: "\n -s Quiet" |
31 | 27 | ||
28 | /* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */ | ||
29 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */ | ||
30 | |||
32 | #include "libbb.h" | 31 | #include "libbb.h" |
33 | 32 | ||
34 | static const char fmt_eof[] ALIGN1 = "cmp: EOF on %s\n"; | 33 | static const char fmt_eof[] ALIGN1 = "cmp: EOF on %s\n"; |