From ead3ef3edc192734109cc44345c4d4b5a21392e0 Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 21 Mar 2011 02:47:23 +0000 Subject: [PATCH] use proper prefix finding for epp. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@57927 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_cc_parse.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bin/edje_cc_parse.c b/src/bin/edje_cc_parse.c index 40a457a..20faac6 100644 --- a/src/bin/edje_cc_parse.c +++ b/src/bin/edje_cc_parse.c @@ -30,6 +30,7 @@ void *alloca (size_t); #include #include "edje_cc.h" +#include "edje_prefix.h" #include #include @@ -638,7 +639,7 @@ get_verbatim_line2(void) void compile(void) { - char buf[4096]; + char buf[4096], buf2[4096]; char inc[4096]; static char tmpn[4096]; int fd; @@ -693,10 +694,11 @@ compile(void) * Run the input through the C pre-processor. */ ret = -1; - if (ecore_file_exists(EPP_DIR"/epp")) + snprintf(buf2, sizeof(buf2), "%s/edje/utils/epp", e_prefix_lib_get()); + if (ecore_file_exists(buf2)) { - snprintf(buf, sizeof(buf), EPP_DIR"/epp %s -I%s %s -o %s", - file_in, inc, def, tmpn); + snprintf(buf, sizeof(buf), "%s %s -I%s %s -o %s", + buf2, file_in, inc, def, tmpn); ret = system(buf); } /* -- 2.7.4