[Omake] Re: splitting a string
Jason Hickey
jyh at cs.caltech.edu
Sat Sep 16 12:51:34 PDT 2006
David Kågedal wrote:
> Similar problems keeps coming back. I have things like this
>
> API=1.0
> ...
> APISYM=$(subst .,_,$(API))
> # APISYM is now 1_0
>
> Simple string substituion functions like subst and patsubst in GNU
> Make are pretty hard to live without. OMake only has the highly
> specialized replacesuffix, which is very useful where it applies.
I agree, and I've been putting together a more general set of functions.
I think we'll try to mirror some of these functions from GNU-make.
Jason
--
Jason Hickey http://www.cs.caltech.edu/~jyh
Caltech Computer Science Tel: 626-395-6568 FAX: 626-792-4257
More information about the Omake
mailing list