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/tr.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 '')
-rw-r--r-- | coreutils/tr.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c index 6d4cb4a14..12d07152b 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -18,6 +18,35 @@ | |||
18 | /* http://www.opengroup.org/onlinepubs/009695399/utilities/tr.html | 18 | /* http://www.opengroup.org/onlinepubs/009695399/utilities/tr.html |
19 | * TODO: graph, print | 19 | * TODO: graph, print |
20 | */ | 20 | */ |
21 | |||
22 | //kbuild:lib-$(CONFIG_TR) += tr.o | ||
23 | |||
24 | //config:config TR | ||
25 | //config: bool "tr" | ||
26 | //config: default n | ||
27 | //config: help | ||
28 | //config: tr is used to squeeze, and/or delete characters from standard | ||
29 | //config: input, writing to standard output. | ||
30 | |||
31 | config FEATURE_TR_CLASSES | ||
32 | bool "Enable character classes (such as [:upper:])" | ||
33 | default n | ||
34 | depends on TR | ||
35 | help | ||
36 | Enable character classes, enabling commands such as: | ||
37 | tr [:upper:] [:lower:] to convert input into lowercase. | ||
38 | |||
39 | config FEATURE_TR_EQUIV | ||
40 | bool "Enable equivalence classes" | ||
41 | default n | ||
42 | depends on TR | ||
43 | help | ||
44 | Enable equivalence classes, which essentially add the enclosed | ||
45 | character to the current set. For instance, tr [=a=] xyz would | ||
46 | replace all instances of 'a' with 'xyz'. This option is mainly | ||
47 | useful for cases when no other way of expressing a character | ||
48 | is possible. | ||
49 | |||
21 | #include "libbb.h" | 50 | #include "libbb.h" |
22 | 51 | ||
23 | enum { | 52 | enum { |