Changeset 229
- Timestamp:
- 02/22/07 03:09:38 (2 years ago)
- Files:
-
- trunk/build/config.d (modified) (1 diff)
- trunk/build/rebuild.d (added)
- trunk/build/tangoUtil.d (modified) (3 diffs)
- trunk/buildme.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/config.d
r228 r229 20 20 mixin(import("build/bud.d")); 21 21 } 22 else version(RebuildBuilder) 23 { 24 mixin(import("build/rebuild.d")); 25 } 22 26 else 23 27 { trunk/build/tangoUtil.d
r228 r229 4 4 import tango.text.Util; 5 5 import tango.text.String; 6 import tango.io.File; 6 7 import tango.sys.Process; 7 8 import tango.stdc.stringz; 8 import tango.stdc.stdio; 9 import tango.stdc.stdio; 9 10 } 10 11 … … 16 17 int cmpStr(char[] a, char[] b) 17 18 { 18 Strings = new String!(char)(a);19 auto s = new String!(char)(a); 19 20 return s.compare(b); 20 21 } … … 40 41 auto p = new Process(cmd, null); 41 42 p.execute(); 42 Resultr = p.wait();43 auto r = p.wait(); 43 44 return r.status; 44 45 } 46 47 char[] readFile(char[] name) 48 { 49 auto f = new File(name); 50 return cast(char[])f.read(); 51 52 } 53 54 void writeFile(char[] name, char[] contents) 55 { 56 auto f = new File(name); 57 f.write(cast(void[])contents); 58 } trunk/buildme.d
r228 r229 3 3 //============================================================================== 4 4 version(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; 21 7 } 22 8 … … 79 65 { 80 66 mixin(import("build/tangoUtil.d")); 67 68 static assert(0, "The build script currently cannot be run under Tango."); 81 69 } 82 70 else
