Changeset 229

Show
Ignore:
Timestamp:
02/22/07 03:09:38 (2 years ago)
Author:
aldacron
Message:

* added missing functions to tangoUtil.d
* added skeleton for rebuild support
* removed unused code from buildme.d

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/config.d

    r228 r229  
    2020    mixin(import("build/bud.d")); 
    2121} 
     22else version(RebuildBuilder) 
     23{ 
     24    mixin(import("build/rebuild.d")); 
     25} 
    2226else 
    2327{ 
  • trunk/build/tangoUtil.d

    r228 r229  
    44    import tango.text.Util; 
    55    import tango.text.String; 
     6    import tango.io.File; 
    67    import tango.sys.Process; 
    78    import tango.stdc.stringz; 
    8     import tango.stdc.stdio; 
     9    import tango.stdc.stdio;    
    910} 
    1011 
     
    1617int cmpStr(char[] a, char[] b) 
    1718{ 
    18     String s = new String!(char)(a); 
     19    auto s = new String!(char)(a); 
    1920    return s.compare(b); 
    2021} 
     
    4041    auto p = new Process(cmd, null); 
    4142    p.execute(); 
    42     Result r = p.wait(); 
     43    auto r = p.wait(); 
    4344    return r.status; 
    4445} 
     46 
     47char[] readFile(char[] name) 
     48{ 
     49    auto f = new File(name); 
     50    return cast(char[])f.read(); 
     51     
     52} 
     53 
     54void writeFile(char[] name, char[] contents) 
     55{ 
     56    auto f = new File(name); 
     57    f.write(cast(void[])contents); 
     58} 
  • trunk/buildme.d

    r228 r229  
    33//============================================================================== 
    44version(Tango) 
    5 
    6     import tango.text.Ascii; 
    7     import tango.text.Util; 
    8     import tango.text.String; 
    9     import tango.sys.Process; 
    10     import tango.stdc.stringz; 
    11     import tango.stdc.stdio; 
    12      
    13     static assert(0, "Currently, support for Tango is not fully implemented."); 
    14 
    15 else 
    16 
    17     import std.string; 
    18     import std.path; 
    19     import std.file; 
    20     import std.c.process; 
     5{    
     6    import tango.stdc.stdio;     
    217} 
    228 
     
    7965{ 
    8066    mixin(import("build/tangoUtil.d")); 
     67     
     68    static assert(0, "The build script currently cannot be run under Tango."); 
    8169} 
    8270else