[PATCH] Capitalize package name and add capitalized tar-ball prefix (was: [PATCH 8/8] A release includes a tar-ball.)

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sun May 12 10:51:21 PDT 2013


On Sun, 12 May 2013, Thiago Macieira wrote:
> On domingo, 12 de maio de 2013 18.34.32, Cristian Ionescu-Idbohrn wrote:
> >  NAME = subsurface
> > +CAPITALIZED_NAME = $(shell     _name=$(NAME); \
> > +                               _rest=$${_name\#?}; \
> > +                               _1st=$$(echo $${_name%$$_rest} | tr a-z
> > A-Z); \ +                               echo $$_1st$$_rest)
>
> You could just write:
>
> CAPITALIZED_NAME = Subsurface

Sure.  But it's not sustainable.

> I'm sure that we can live with the hardcoded name :-)

Yes.  But I'm more for "code it once and forget it".  Such stupid small
things tend to eat up energi :(  I don't mind "wasting" that time now,
rather than later ;)


Cheers,

-- 
Cristian


More information about the subsurface mailing list