NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/41700: :tr modifier for NetBSD make [patch]

 >> Some time ago I proposed to implement a new variable modifier for bmake, :tr
 >> for character substitution in tr(1) manner.
>  This looks OK in princple, but it also needs man page updates and
>  regression tests.

I'll implement regression tests a bit later.

Index: make.1
RCS file: /cvsroot/src/usr.bin/make/make.1,v
retrieving revision 1.158
diff -u -r1.158 make.1
--- make.1      1 Jun 2009 23:28:39 -0000       1.158
+++ make.1      11 Jul 2009 12:09:20 -0000
@@ -910,6 +910,19 @@
 .Ar c
 is omitted, then no separator is used.
+.Sm off
+.It Cm \&:tr No \&/ Ar chars Xo
+.No \&/ Ar repl \&/
+Converts variable by replacing character from
+.Ar chars
+ with appropriate characters from
+.Ar repl
+ .
+.Ar chars
+ and
+.Ar repl
+ must contain the same number of characters.
 .It Cm \&:tu
 Converts variable to upper-case letters.
 .It Cm \&:tW

Best regards, Aleksey Cheusov.

Home | Main Index | Thread Index | Old Index