rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=fef6cfb35b8ff98ba4666aa60267f868e3b7dcfa

commit fef6cfb35b8ff98ba4666aa60267f868e3b7dcfa
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Tue Jan 5 09:54:16 2016 +0200

    project_manager: add internal func for export resource by name
    
    Change-Id: Ic4816ebc21c66b1c24936c4066cd4b03bd50e267
---
 src/bin/project_manager/project_manager.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/src/bin/project_manager/project_manager.c 
b/src/bin/project_manager/project_manager.c
index 320f8cf..d13f383 100644
--- a/src/bin/project_manager/project_manager.c
+++ b/src/bin/project_manager/project_manager.c
@@ -1418,6 +1418,27 @@ _external_resources_export(Eina_List *resources, const 
char *dst)
    eina_strbuf_free(buf);
 }
 
+static void
+_external_resource_export(Eina_List *resources, Eina_Stringshare *name, const 
char *dst)
+{
+   Eina_Strbuf *buf;
+   Eina_List *l;
+   External_Resource *res;
+
+   buf = eina_strbuf_new();
+   EINA_LIST_FOREACH(resources, l, res)
+     {
+        if (name == res->name)
+          {
+             eina_strbuf_append_printf(buf, "%s/%s", dst, res->name);
+             ecore_file_cp(res->source, eina_strbuf_string_get(buf));
+             eina_strbuf_reset(buf);
+             break;
+          }
+     }
+   eina_strbuf_free(buf);
+}
+
 static void *
 _source_code_export(void *data __UNUSED__, Eina_Thread *thread __UNUSED__)
 {

-- 


Reply via email to