Changeset 771

Show
Ignore:
Timestamp:
08/15/07 21:22:33 (1 year ago)
Author:
Gregor
Message:

docs/ChangeLog, docs/README.use, sss/main.d, sss/conf.d: Added .dsssrc support (see ticket #120).

Files:

Legend:

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

    r769 r771  
    1515          #109). 
    1616        - Added --debug option (see ticket #108). 
     17        - Added .dsssrc support (see ticket #120). 
    1718 
    18190.70 from 0.69: 
  • trunk/docs/README.use

    r750 r771  
    3232the source directory as it was before DSSS was used at all, with the command: 
    3333$ dsss distclean 
     34 
     35If you'd like certain flags to be included whenever you call DSSS, you can add 
     36them to your DSSS RC file: ~/.dsssrc on POSIX, dsss.rc next to dsss.exe on 
     37Windows. 
    3438 
    3539 
  • trunk/docs/html/README.software_engineers.html

    r761 r771  
    9898buildflags=-O 
    9999 
     100Flags for use with release and debug builds (when using --debug) can be 
     101specified separately in 'releaseflags' and 'debugflags', respectively. 
     102'debugflags' defaults to '-debug -gc'. 
     103 
    100104<h3> SECTION TYPES </h3> 
    101105 
     
    409413buildflags=-O 
    410414 
     415Note that any settings in a named section will override those in "*" sections. 
     416For example, in this situation: 
     417 
     418[*] 
     419buildflags=-O 
     420 
     421[mydlib] 
     422buildflags+=-release 
     423 
     424mydlib's buildflags are only "-release". 
     425 
    411426 
    412427<h2> ADVANCED FEATURES </h2> 
  • trunk/docs/html/README.use.html

    r750 r771  
    3333the source directory as it was before DSSS was used at all, with the command: 
    3434$ dsss distclean 
     35 
     36If you'd like certain flags to be included whenever you call DSSS, you can add 
     37them to your DSSS RC file: ~/.dsssrc on POSIX, dsss.rc next to dsss.exe on 
     38Windows. 
    3539 
    3640 
  • trunk/sss/conf.d

    r769 r771  
    12461246    return ret; 
    12471247} 
     1248 
     1249/** Read .dsssrc file */ 
     1250char[][] readDSSSRC() 
     1251{ 
     1252    char[] dsssrc; 
     1253 
     1254    version (Windows) { 
     1255        // on Windows, just look in bindir 
     1256        char[] bindir, binname; 
     1257        if (whereAmI("dsss", bindir, binname)) { 
     1258            if (exists(bindir ~ "\\dsss.rc")) { 
     1259                dsssrc = cast(char[]) std.file.read(bindir ~ "\\dsss.rc"); 
     1260            } 
     1261        } 
     1262 
     1263    } else { 
     1264        char[] home = getEnvVar("HOME"); 
     1265        if (exists(home ~ "/.dsssrc")) { 
     1266            dsssrc = cast(char[]) std.file.read(home ~ "/.dsssrc"); 
     1267        } 
     1268 
     1269    } 
     1270 
     1271    // now split it up 
     1272    char[][] rcsplit = split(dsssrc); 
     1273    char[][] ret; 
     1274    foreach (se; rcsplit) { 
     1275        if (se != "") { 
     1276            ret ~= se; 
     1277        } 
     1278    } 
     1279    return ret; 
     1280} 
  • trunk/sss/main.d

    r769 r771  
    7878 
    7979    char[] val; 
     80 
     81    // Now load in dsssrc 
     82    args ~= readDSSSRC(); 
    8083     
    8184    for (int i = 1; i < args.length; i++) {