Show
Ignore:
Timestamp:
05/03/07 03:11:32 (2 years ago)
Author:
Gregor
Message:

dsss.conf, pkgslist.d: Very necessary updates.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sources/pkgslist.d

    r242 r564  
    7575         
    7676        // read config 
    77         DSSSConf conf = readConfig(null); 
    78         char[] vers = conf.settings[""]["version"]; 
    79          
    80         // then get the list of modules 
    81         foreach (section; conf.sections) { 
    82             if (conf.settings[section]["type"] == "library") { 
    83                 char[][] files = targetToFiles(section, conf); 
    84                 foreach (file; files) { 
    85                     curpkg ~= file ~ " " ~ vers ~ " " ~ info[0] ~ "\n"; 
     77        void handleDir() { 
     78            DSSSConf conf = readConfig(null); 
     79            char[] vers = conf.settings[""]["version"]; 
     80             
     81            // then get the list of modules 
     82            foreach (section; conf.sections) { 
     83                if (conf.settings[section]["type"] == "library" || 
     84                    conf.settings[section]["type"] == "sourcelibrary") { 
     85                    char[][] files = targetToFiles(section, conf); 
     86                    foreach (file; files) { 
     87                        curpkg ~= file ~ " " ~ vers ~ " " ~ info[0] ~ "\n"; 
     88                    } 
     89                     
     90                } else if (conf.settings[section]["type"] == "subdir") { 
     91                    char[] origcwd = getcwd(); 
     92                    chdir(section); 
     93                    handleDir(); 
     94                    chdir(origcwd); 
     95                     
    8696                } 
    8797            } 
    8898        } 
    8999         
     100        handleDir(); 
     101         
    90102        // and add the package itself 
     103        DSSSConf conf = readConfig(null); 
     104        char[] vers = conf.settings[""]["version"]; 
     105         
    91106        curpkg ~= info[0] ~ " " ~ vers; 
    92107        if ("requires" in conf.settings[""]) {