Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/bin


Modified Files:
        edje_prefix.c 


Log Message:


some prefix fixes for env vars

===================================================================
RCS file: /cvs/e/e17/libs/edje/src/bin/edje_prefix.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- edje_prefix.c       13 Jul 2006 16:35:46 -0000      1.2
+++ edje_prefix.c       21 Jul 2006 15:55:54 -0000      1.3
@@ -58,26 +58,22 @@
      {
        _prefix_path = strdup(getenv("E_PREFIX"));
        if (getenv("E_BIN_DIR"))
-         _prefix_path_bin = strdup(getenv("E_BIN_DIR"));
+         snprintf(buf, sizeof(buf), "%s/bin", getenv("E_BIN_DIR"));
        else
-         {
-            snprintf(buf, sizeof(buf), "%s/bin", _prefix_path);
-            _prefix_path_bin = strdup(buf);
-         }
+         snprintf(buf, sizeof(buf), "%s/bin", _prefix_path);
+       _prefix_path_bin = strdup(buf);
+
        if (getenv("E_LIB_DIR"))
-         _prefix_path_bin = strdup(getenv("E_LIB_DIR"));
+         snprintf(buf, sizeof(buf), "%s/lib", getenv("E_LIB_DIR"));
        else
-         {
-            snprintf(buf, sizeof(buf), "%s/lib", _prefix_path);
-            _prefix_path_lib = strdup(buf);
-         }
+         snprintf(buf, sizeof(buf), "%s/lib", _prefix_path);
+       _prefix_path_lib = strdup(buf);
+       
        if (getenv("E_DATA_DIR"))
-         _prefix_path_data = strdup(getenv("E_DATA_DIR"));
+         snprintf(buf, sizeof(buf), "%s/"SHARE_D, getenv("E_DATA_DIR"));
        else
-         {
-            snprintf(buf, sizeof(buf), "%s/"SHARE_D, _prefix_path);
-            _prefix_path_data = strdup(buf);
-         }
+         snprintf(buf, sizeof(buf), "%s/"SHARE_D, _prefix_path);
+       _prefix_path_data = strdup(buf);
        return 1;
      }
    /* no env var - examine process and possible argv0 */



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to