Changeset 258

Show
Ignore:
Timestamp:
05/05/07 13:39:31 (1 year ago)
Author:
aldacron
Message:

* added the ability to specify specific packages to the install script, so that only the source from those packages will be copied

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/install.d

    r253 r258  
    8484    } 
    8585     
    86     char[][] dirList = listdir("."); 
    87     foreach(d; dirList) 
     86    if(args.length > 2) 
    8887    { 
    89         if(d[0] == '.' || !isdir(d)) continue; 
    90         auto derelict = std.path.join(d, "derelict"); 
    91         if(exists(derelict)) 
     88        for(int i=2; i<args.length; ++i) 
    9289        { 
    93             process(derelict, iderelict, ""); 
     90            auto derelict = std.path.join(args[i], "derelict"); 
     91            if(exists(derelict)) 
     92            { 
     93                process(derelict, iderelict, ""); 
     94            } 
    9495        } 
    95     }    
     96    } 
     97    else 
     98    { 
     99        char[][] dirList = listdir("."); 
     100        foreach(d; dirList) 
     101        { 
     102            if(d[0] == '.' || !isdir(d)) continue; 
     103            auto derelict = std.path.join(d, "derelict"); 
     104            if(exists(derelict)) 
     105            { 
     106                process(derelict, iderelict, ""); 
     107            } 
     108        } 
     109    } 
    96110} 
    97111