2011/3/10 Daniel Juyung Seo <[email protected]>:
> It looks like a bug.
> When using editje for edj creation, edje_file->compiler becomes edje_edit.
> When using edje_cc for edj creation, edje_file->compiler becomes edje_cc.

We spotted this bug log time ago...don't remember the old discussion.
Can't we just hardcode "edje_cc" in the printf call?

DaveMDS


>
> Daniel Juyung Seo (SeoZ)
>
> On Fri, Mar 11, 2011 at 6:36 AM, Andreas Volz <[email protected]> wrote:
>> Hello,
>>
>> I'm just wondering why edje_decc writes a build.sh with this content:
>>
>> edje_edit $@ -id . -fd . generated_source.edc -o screens.edj
>>
>> This for sure doesn't work. I searched the sources and found this in
>> edje_decc.c:
>>
>>
>>        if (build_sh)
>>          {
>>             snprintf(out, sizeof(out), "%s/build.sh", outdir);
>>             printf("Output Build Script: %s\n", out);
>>             if (strstr(out, "../"))
>>               {
>>                  ERR("potential security violation. attempt to write in 
>> parent dir.\n");
>>                  exit (-1);
>>               }
>>             f = fopen(out, "wb");
>>             fprintf(f, "#!/bin/sh\n");
>>             fprintf(f, "%s $@ -id . -fd . %s -o %s.edj\n", 
>> edje_file->compiler, sf->name, outdir);
>>             fclose(f);
>>
>>             WRN("\n*** CAUTION ***\n"
>>                 "Please check the build script for anything malicious "
>>
>> I edited this files ages ago with edje_edit. I think because of this 
>> edje_file->compiler is
>> "edje_edit". But running build.sh doesn't work here. Couldn't we just always 
>> use edje_cc?
>>
>> regards
>>        Andreas
>>
>> --
>> Technical Blog <http://andreasvolz.wordpress.com/>
>>
>> ------------------------------------------------------------------------------
>> Colocation vs. Managed Hosting
>> A question and answer guide to determining the best fit
>> for your organization - today and in the future.
>> http://p.sf.net/sfu/internap-sfd2d
>> _______________________________________________
>> enlightenment-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to