Changeset 1400 for trunk/tools/rdmd.d
- Timestamp:
- 01/06/10 12:30:41 (2 years ago)
- Files:
-
- trunk/tools/rdmd.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/rdmd.d
r1315 r1400 1 1 // Written in the D programming language. 2 2 3 import std. date, std.getopt, std.string, std.process, std.stdio,4 std. contracts, std.file,5 std. algorithm, std.iterator, std.md5, std.path, std.regexp, std.getopt,6 std. c.stdlib, std.process;3 import std.algorithm, std.c.stdlib, std.contracts, std.date, 4 std.file, std.getopt, 5 std.md5, std.path, std.process, std.regexp, 6 std.stdio, std.string, std.typetuple; 7 7 8 8 version (Posix) … … 168 168 // Have at it 169 169 if (isNewer(root, exe) || 170 find!((string a) {return isNewer(a, exe);})(myModules.keys).length) 170 std.algorithm.find! 171 ((string a) {return isNewer(a, exe);}) 172 (myModules.keys).length) 171 173 { 172 174 invariant result = rebuild(root, exe, objDir, myModules, compilerFlags, … … 193 195 private string myOwnTmpDir() 194 196 { 195 version ( linux)197 version (Posix) 196 198 { 197 199 enum tmpRoot = "/tmp/.rdmd"; … … 297 299 string[string] myModules;// = [ rootModule : d2obj(rootModule) ]; 298 300 // Must collect dependencies 299 invariant depsGetter = /*"c hdir"~shellQuote(rootDir)~" && "301 invariant depsGetter = /*"cd "~shellQuote(rootDir)~" && " 300 302 ~*/compiler~" "~join(compilerFlags, " ") 301 303 ~" -v -o- "~shellQuote(rootModule)
