diff options
author | pmarecha | 2010-06-24 08:07:11 +0000 |
---|---|---|
committer | pmarecha | 2010-06-24 08:07:11 +0000 |
commit | 00d0889f1ea44a57f697a494ec8b3ad22809f3ad (patch) | |
tree | 3035f7e99f59781ed0fd77dbe89669a60c58e07f /macros | |
parent | d378a80ec50b5ab57ec4ab1738d028021dd4c07b (diff) | |
download | scilab2c-00d0889f1ea44a57f697a494ec8b3ad22809f3ad.tar.gz scilab2c-00d0889f1ea44a57f697a494ec8b3ad22809f3ad.tar.bz2 scilab2c-00d0889f1ea44a57f697a494ec8b3ad22809f3ad.zip |
Remove useless chdir(s)
Diffstat (limited to 'macros')
-rw-r--r-- | macros/buildmacros.sce | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/macros/buildmacros.sce b/macros/buildmacros.sce index dde02652..41e3ace0 100644 --- a/macros/buildmacros.sce +++ b/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 |