-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ingmar Vanhassel schrieb:
> 2007/11/9, René 'Necoro' Neumann <[EMAIL PROTECTED]>:
>> Steve Long schrieb:
>>> René 'Necoro' Neumann wrote:
>>>> cmake-utils_src_enable python => -DENABLE_python=...
>>>>
>>>> Wanted would be that it returned -DENABLE_PYTHON=...
>>>>
>>>> I'm not into bash scripting that much, so I do not know a way to do so -
>>>> but I guess someone else is ;)
>>>>
>>> Unfortunately BASH doesn't support ksh93 or zsh style casting to
>> uppercase.
>>> The best way really is via tr:
>>> alias toUpper='tr [[:lower:]] [[:upper:]]'
>>> alias toLower='tr [[:upper:]] [[:lower:]]'
>>>
>>> (er aliases don't normally work in scripts, but you get the idea.) Bear in
>>> mind that tr reads stdin and writes to stdout. It has the advantage of
>>> being locale-safe. Every other method I've looked at is much slower and
>>> only works with ASCII.
>>>
>>> A function wouldn't be too hard:
>>> toUpper() {
>>> for i; do
>>> echo "$i" |tr [[:lower:]] [[:upper:]]
>>> done
>>> }
>>>
>>> Usage depends on the parameters you pass.
>>> var=$(toUpper $var) # for single vars with no newlines in
>> This is right the version I've chosen ... so with the help of Steve: a
>> small patch ;)
>>
>> Regards,
>> Necoro
>
> Hi Necoro,
>
> You can just use 'cmake-utils_use_enable python PYTHON'
>
> It's mentioned in the cmake-utils.eclass manpage
> (app-portage/eclass-manpages),
> as well as in the patch you just sent: cmake-utils_use_enable <USE
> flag> [flag name]
>
> :-)
>
> Regards,
> Ingmar Vanhassel
> ���^����(� ��X��X�t===
I know this :) ... and this is how I did this at the moment.
But as I think, that the uppercase version is the common behavior here,
it should not need this extra "PYTHON". :) That's why the patch ;)
Regards,
Necoro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHNCQS4UOg/zhYFuARAmdhAJ9idOAgUEX7GIvQrkDIIOT8heg5YgCfdSAM
09YrI9Nky6kmKVNg4Egafgk=
=ZT15
-----END PGP SIGNATURE-----
--
[EMAIL PROTECTED] mailing list