Show
Ignore:
Timestamp:
01/06/10 12:30:41 (2 years ago)
Author:
andrei
Message:

Changed version(linux) with version(Posix) to enable OSX compatibility.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/rdmd.d

    r1315 r1400  
    11// Written in the D programming language. 
    22 
    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
     3import 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
    77 
    88version (Posix) 
     
    168168    // Have at it 
    169169    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) 
    171173    { 
    172174        invariant result = rebuild(root, exe, objDir, myModules, compilerFlags, 
     
    193195private string myOwnTmpDir() 
    194196{ 
    195     version (linux) 
     197    version (Posix) 
    196198    { 
    197199        enum tmpRoot = "/tmp/.rdmd"; 
     
    297299    string[string] myModules;// = [ rootModule : d2obj(rootModule) ]; 
    298300    // Must collect dependencies 
    299     invariant depsGetter = /*"chdir "~shellQuote(rootDir)~" && " 
     301    invariant depsGetter = /*"cd "~shellQuote(rootDir)~" && " 
    300302                             ~*/compiler~" "~join(compilerFlags, " ") 
    301303        ~" -v -o- "~shellQuote(rootModule)