summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpmarecha2010-06-24 08:07:11 +0000
committerpmarecha2010-06-24 08:07:11 +0000
commit6d86ed36a5c5c46c21b6136614de859277218098 (patch)
treeb432d7726a0429e2c085a98dffaf7acd642e5378
parent93f4030ac77b16dcab5f237b706e4fe247ed8f49 (diff)
downloadscilab2c-6d86ed36a5c5c46c21b6136614de859277218098.tar.gz
scilab2c-6d86ed36a5c5c46c21b6136614de859277218098.tar.bz2
scilab2c-6d86ed36a5c5c46c21b6136614de859277218098.zip
Remove useless chdir(s)
-rw-r--r--scilab2c/macros/buildmacros.sce31
1 files changed, 13 insertions, 18 deletions
diff --git a/scilab2c/macros/buildmacros.sce b/scilab2c/macros/buildmacros.sce
index dde02652..41e3ace0 100644
--- a/scilab2c/macros/buildmacros.sce
+++ b/scilab2c/macros/buildmacros.sce
@@ -1,27 +1,22 @@
-// ====================================================================
-// Allan CORNET
-// Simon LIPP
-// INRIA 2008
// This file is released into the public domain
-// ====================================================================
+
Directories = [ "ASTManagement", ...
- "CCodeGeneration", ...
- "ErrorMessages", ...
- "findDeps", ...
- "FunctionAnnotation", ...
- "FunctionList", ...
- "GeneralFunctions", ...
- "SymbolTable", ...
- "ToolInitialization" ];
+ "CCodeGeneration", ...
+ "ErrorMessages", ...
+ "findDeps", ...
+ "FunctionAnnotation", ...
+ "FunctionList", ...
+ "GeneralFunctions", ...
+ "SymbolTable", ...
+ "ToolInitialization" ];
-current_path_buildmacros = get_absolute_file_path('buildmacros.sce');
+current_path_buildmacros = get_absolute_file_path("buildmacros.sce");
for K=1:size(Directories,"*")
- if isdir( current_path_buildmacros + filesep() + Directories(K) ) then
- chdir( current_path_buildmacros + filesep() + Directories(K) );
- exec("buildmacros.sce");
- chdir(current_path_buildmacros);
+ myfile = current_path_buildmacros + filesep() + Directories(K) + filesep() + "buildmacros.sce";
+ if isfile(myfile) then
+ exec(myfile);
end
end