Changeset 54

Show
Ignore:
Timestamp:
03/22/06 11:06:29 (3 years ago)
Author:
Jan-Klaas Kollhof
Message:

fixing build script problem ticket:21

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/build.js

    r53 r54  
    122122    }; 
    123123     
     124    var createFolders=function(path){ 
     125        var pf = fs.GetParentFolderName(path); 
     126        if(! fs.FolderExists(pf)){ 
     127            createFolders(pf); 
     128        } 
     129        fs.CreateFolder(path); 
     130    }; 
    124131     
    125132    mod.__main__=function(){ 
    126133         
    127134        this.gn = new lang.GlobalNode(); 
    128         try{ 
    129             fs.createFolder(mod.buildPath); 
    130         }catch(e){ 
    131135         
    132         } 
    133                         
     136        createFolders(mod.buildPath); 
    134137         
    135138        mod.buildDir(fs.getFolder(mod.sourcePath), fs.getFolder(mod.buildPath));