aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tr.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-04 19:59:49 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-04 19:59:49 +0200
commite4070cb0d7586037c6fcf0f0f00d8d5b97f649d3 (patch)
treeabb5ef8065937f596c1e1e1249dc745c1076465b /coreutils/tr.c
parent6db13732954b23bd0f6f55c5b3c3941f0547141c (diff)
downloadbusybox-e4070cb0d7586037c6fcf0f0f00d8d5b97f649d3.tar.gz
partially migrate coreutils to Config.src and Kbuild.src
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r--coreutils/tr.c29
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 @@
/* http://www.opengroup.org/onlinepubs/009695399/utilities/tr.html
* TODO: graph, print
*/
+
+//kbuild:lib-$(CONFIG_TR) += tr.o
+
+//config:config TR
+//config: bool "tr"
+//config: default n
+//config: help
+//config: tr is used to squeeze, and/or delete characters from standard
+//config: input, writing to standard output.
+
+config FEATURE_TR_CLASSES
+ bool "Enable character classes (such as [:upper:])"
+ default n
+ depends on TR
+ help
+ Enable character classes, enabling commands such as:
+ tr [:upper:] [:lower:] to convert input into lowercase.
+
+config FEATURE_TR_EQUIV
+ bool "Enable equivalence classes"
+ default n
+ depends on TR
+ help
+ Enable equivalence classes, which essentially add the enclosed
+ character to the current set. For instance, tr [=a=] xyz would
+ replace all instances of 'a' with 'xyz'. This option is mainly
+ useful for cases when no other way of expressing a character
+ is possible.
+
#include "libbb.h"
enum {