ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=f66d5ebaa8eb9387ef4f983a16d0aae9307f5bcc

commit f66d5ebaa8eb9387ef4f983a16d0aae9307f5bcc
Author: Andy Williams <a...@andywilliams.me>
Date:   Sat Jan 16 22:50:24 2016 +0000

    [builder] Lauch /bin/sh to avoid local shell issues.
    
    We're assuming a unix / linux machine of course
     - this needs to be addressed for proper windows support
---
 src/lib/edi_builder.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/lib/edi_builder.c b/src/lib/edi_builder.c
index ae9be22..3c90763 100644
--- a/src/lib/edi_builder.c
+++ b/src/lib/edi_builder.c
@@ -30,7 +30,8 @@ EAPI void
 _edi_builder_build_configure(void)
 {
    chdir(edi_project_get());
-   ecore_exe_pipe_run("./configure && make", ECORE_EXE_PIPE_READ_LINE_BUFFERED 
| ECORE_EXE_PIPE_READ |
+   ecore_exe_pipe_run("/bin/sh -c \"./configure && make\"",
+                              ECORE_EXE_PIPE_READ_LINE_BUFFERED | 
ECORE_EXE_PIPE_READ |
                               ECORE_EXE_PIPE_ERROR_LINE_BUFFERED | 
ECORE_EXE_PIPE_ERROR, NULL);
 }
 
@@ -38,7 +39,7 @@ EAPI void
 _edi_builder_build_cmake(void)
 {
    chdir(edi_project_get());
-   ecore_exe_pipe_run("mkdir -p build && cd build && cmake .. && make && cd 
..",
+   ecore_exe_pipe_run("/bin/sh -c \"mkdir -p build && cd build && cmake .. && 
make && cd ..\"",
                               ECORE_EXE_PIPE_READ_LINE_BUFFERED | 
ECORE_EXE_PIPE_READ |
                               ECORE_EXE_PIPE_ERROR_LINE_BUFFERED | 
ECORE_EXE_PIPE_ERROR, NULL);
 }
@@ -47,7 +48,8 @@ EAPI void
 _edi_builder_build_autogen(void)
 {
    chdir(edi_project_get());
-   ecore_exe_pipe_run("./autogen.sh && make", 
ECORE_EXE_PIPE_READ_LINE_BUFFERED | ECORE_EXE_PIPE_READ |
+   ecore_exe_pipe_run("/bin/sh -c \"./autogen.sh && make \"",
+                              ECORE_EXE_PIPE_READ_LINE_BUFFERED | 
ECORE_EXE_PIPE_READ |
                               ECORE_EXE_PIPE_ERROR_LINE_BUFFERED | 
ECORE_EXE_PIPE_ERROR, NULL);
 }
 

-- 


Reply via email to