Changeset 6

Show
Ignore:
Timestamp:
01/11/07 00:34:19 (2 years ago)
Author:
JoeCoder
Message:

Test Commit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/proj/buildme.d

    r5 r6  
    1111 * Examples: 
    1212 * ------ 
    13  * dmd -run buildme.d -release -run 
     13 * dmd -run buildme.d -release -clean -run 
     14 * dmd -run buildme.d -release -clean -run 
    1415 * ------ 
    1516 * 
     
    111112    char[][] files = scan(obj_path, ".obj")~scan(obj_path, ".o")~scan(obj_path, ".map")~scan(obj_path, bin_ext); 
    112113    foreach(char[] file; files) 
    113         std.file.remove(file); 
     114    {   std.file.remove(file); 
     115        //writefln(file); 
     116    } 
    114117     
    115118    // Remove all intermediate folders 
     
    187190    char[][] docs = scan(".", ".html"); 
    188191    foreach (char[] doc; docs) 
    189         std.file.remove(doc); 
     192    {   std.file.remove(doc); 
     193        //writefln(doc); 
     194    } 
    190195         
    191196    // Build modules file for candydoc 
     
    202207} 
    203208 
     209/** 
     210 * Rename and move documentation files, and delete intermediate candydoc files.*/ 
    204211void docsPostProcess() 
    205212{ 
     
    212219        {   copy(doc, dest); 
    213220            std.file.remove(doc); 
     221            //writefln(doc); 
    214222        } 
    215223    } 
     
    274282     
    275283    // Clean docs and generate candydoc module 
    276     if (ddoc) 
    277         docsPreProcess(); 
     284    try 
     285    {   if (ddoc) 
     286            docsPreProcess(); 
     287    } catch (Exception e) 
     288    {   writefln(e); 
     289        writefln("Error with optional documentation step.  Continuing.");    
     290    } 
    278291 
    279292    // Compile 
     
    297310     
    298311    // Move Docs 
    299     if (ddoc) 
    300         docsPostProcess(); 
     312    try 
     313    {   if (ddoc) 
     314            docsPostProcess(); 
     315    } catch (Exception e) 
     316    {   writefln(e); 
     317        writefln("Error with optional documentation step.  Continuing.");    
     318    } 
    301319     
    302320    // Clean 
    303     if (_clean) 
    304         clean();     
     321    try 
     322    {   if (_clean) 
     323            clean();     
     324    } catch (Exception e) 
     325    {   writefln(e); 
     326        writefln("Error with optional clean step.  Continuing.");    
     327    } 
    305328     
    306329    writefln("The build completed successfully.");