[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Implementing 'tr' in GNU Make 3.80
From: |
John Graham-Cumming |
Subject: |
Re: Implementing 'tr' in GNU Make 3.80 |
Date: |
Fri, 07 Jan 2005 15:27:27 -0500 |
On Fri, 2005-01-07 at 12:13, Dill, John wrote:
> I think we could expand on the [A-Z] idea, but we would need a custom
> function to interpret a regex range item. We could code an ascii
> numerical encoding to characters to form ranges. After all, [A-Z] is
> really character 65 to 90. We could create a function which
> translates [A-Z] into asc65 asc90 and generate indexes to index a list
> of ascii characters to build using wordlist. I think it's possible to
> generalize this [range] concept to a more general level.
I think if you really need it that much you'd find it quicker to patch
function.c with a real $(tr FROM,TO,TEXT) function than try to implement
all the things you are talking about with GNU Make. After all, the
source of tr is available.
John.
--
John Graham-Cumming
Home: http://www.jgc.org/
Work: http://www.electric-cloud.com/
POPFile: http://getpopfile.org/