[elbe-devel] [PATCH 6/6] commands check-build: Add SDK checker
Olivier Dion
dion at linutronix.de
Mon Jun 29 23:33:45 CEST 2020
On Fri, 26 Jun 2020, Olivier Dion <dion at linutronix.de> wrote:
> On Wed, 24 Jun 2020, Torben Hohn <torben.hohn at linutronix.de> wrote:>
>> lets have a little bit more..
>>
>> maybe use pkg-config to link against something.
>> using a shell script to generate some files, is a bit annoying.
>> why do you need to do this ?
>>
>> why cant you have a set of mako template for example, that generate the
>> files ? a bit like elbe init ?
>
> I feeled that using mako' template for expanding 2 variables was a bit
> too much. I don't mind using it tho. It's actually better since I can
> change my editor major mode to match shell syntax.
I changed my mind. I find it painful to work with mako only to generate
files that don't require any thing mako offer. I can pass environment
variables to the script instead of using Python template tho.
And so it's just a matter of doing:
----------------------------------------------------------------------
do("/bin/sh", stdin=self.script, env_add={"ELBE_SDK_ENV":env})
----------------------------------------------------------------------
If the script get more complicated, we might want to split this into
mako files. But for now I think this is more cumbersome than anything
else.
--
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
More information about the elbe-devel
mailing list