Changeset 792

Show
Ignore:
Timestamp:
08/28/07 00:47:30 (1 year ago)
Author:
Gregor
Message:

hcf/path.d, sss/conf.d: Fixed excludes to work with a larger variety of paths (see ticket #126).

sss/build.d, sss/install.d: Added a warning for targets containing no files.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/ChangeLog

    r791 r792  
    22        - Rebuild: Merged DMD 2.003. 
    33        - Improved incremental build speed. 
     4        - Fixed excludes to work with a larger variety of paths (see ticket #126). 
     5        - Added a warning for targets containing no files. 
    46 
    570.72 from 0.71: 
  • trunk/hcf/path.d

    r497 r792  
    164164        } 
    165165    } 
     166 
     167    // get rid of any introductory ./'s 
     168    while (ret.length > 2 && ret[0..2] == "." ~ std.path.sep) { 
     169        ret = ret[2..$]; 
     170    } 
    166171     
    167172    // finally, get rid of any trailing separators 
  • trunk/sss/build.d

    r791 r792  
    246246            // output what we're building 
    247247            writefln("%s => %s", build, target); 
     248            if (files.length == 0) { 
     249                writefln("WARNING: Section %s has no files.", build); 
     250                continue; 
     251            } 
    248252 
    249253            // prepare to do documentation 
  • trunk/sss/conf.d

    r771 r792  
    795795        if (!force && 
    796796            (ndir in conf.settings || // a separate target 
    797              excluded(ndir))) { 
     797             excluded(canonPath(ndir)))) { 
    798798            return; 
    799799        } 
     
    819819            } else if (ext == "d") { 
    820820                // or just add it 
    821                 if (!excluded(file)) { 
     821                if (!excluded(canonPath(file))) { 
    822822                    files ~= file; 
    823823                } 
     
    825825            } else if (ext == "di") { 
    826826                // only add .di files if we should 
    827                 if (includeDi) { 
     827                if (includeDi && !excluded(canonPath(file))) { 
    828828                    files ~= file; 
    829829                } 
  • trunk/sss/install.d

    r769 r792  
    9494        if (type == "library" && libsSafe()) { 
    9595            // far more complicated 
     96            char[][] srcFiles = targetToFiles(build, conf, true); 
     97            if (srcFiles.length == 0) { 
     98                // warning is in sss.build 
     99                continue; 
     100            } 
    96101             
    97102            // 1) copy in library files 
     
    149154             
    150155            // 2) install generated .di files 
    151             char[][] srcFiles = targetToFiles(build, conf, true); 
    152156            foreach (file; srcFiles) { 
    153157                // if it's already a .di file, this is simpler