Re: [E-devel] edje_decc - build.sh

2011-03-19 Thread The Rasterman
On Thu, 10 Mar 2011 22:36:00 +0100 Andreas Volz li...@brachttal.net said:
   
 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?

we could, and that's what i just did. :)

-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje_decc - build.sh

2011-03-12 Thread Daniel Juyung Seo
 Can't we just hardcode edje_cc in the printf call?
I think that's ok.
Anybody has an idea?

If nobody disagrees, I'll fix this soon :)
Thanks.

Daniel Juyung Seo (SeoZ)

On Sat, Mar 12, 2011 at 1:17 AM, Davide Andreoli d...@gurumeditation.it wrote:
 2011/3/10 Daniel Juyung Seo seojuyu...@gmail.com:
 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 li...@brachttal.net 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
 enlightenment-devel@lists.sourceforge.net
 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
 enlightenment-devel@lists.sourceforge.net
 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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje_decc - build.sh

2011-03-11 Thread Davide Andreoli
2011/3/10 Daniel Juyung Seo seojuyu...@gmail.com:
 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 li...@brachttal.net 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
 enlightenment-devel@lists.sourceforge.net
 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
 enlightenment-devel@lists.sourceforge.net
 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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] edje_decc - build.sh

2011-03-10 Thread Andreas Volz
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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje_decc - build.sh

2011-03-10 Thread Daniel Juyung Seo
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.

Daniel Juyung Seo (SeoZ)

On Fri, Mar 11, 2011 at 6:36 AM, Andreas Volz li...@brachttal.net 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
 enlightenment-devel@lists.sourceforge.net
 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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel