Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 1874

Show
Ignore:
Timestamp:
03/10/07 13:58:02 (2 years ago)
Author:
larsivi
Message:

Removed dep on LineIterator?

Files:

Legend:

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

    r1871 r1874  
    44import tango.io.FilePath; 
    55import tango.io.FileConst; 
    6 import tango.text.stream.LineIterator; 
    76 
    87import tango.io.Stdout; 
     
    127126    auto bld = new Process(buildcmd, null); 
    128127    bld.execute(); 
    129     foreach(line; new LineIterator!(char)(bld.stderr)) 
    130     { 
    131         Stderr(line).newline; 
    132     } 
     128    Stderr.conduit.copy(bld.stderr); 
    133129    result = bld.wait(); 
    134130    if (result.reason != Process.Result.Exit) { 
     
    144140    auto chmod = new Process("chmod 644 " ~ chmodfiles, null); 
    145141    chmod.execute(); 
    146     foreach(line; new LineIterator!(char)(chmod.stderr)) 
    147     { 
    148         Stderr(line).newline; 
    149     } 
     142    Stderr.conduit.copy(chmod.stderr); 
    150143    result = chmod.wait(); 
    151144    if (result.reason != Process.Result.Exit) { 
     
    154147    } 
    155148  
    156     // remove patches/ , install/win32/, docs and maybe more 
     149    // remove patches/ , install/win32/, doc/ and more 
    157150    Stdout("!! Removing " ~ rmpaths).newline; 
    158151    auto rm = new Process("rm -rf " ~ rmpaths, null); 
    159152    rm.execute(); 
    160     foreach(line; new LineIterator!(char)(rm.stderr)) 
    161     { 
    162         Stderr(line).newline; 
    163     } 
     153    Stderr.conduit.copy(rm.stderr); 
    164154    result = rm.wait(); 
    165155    if (result.reason != Process.Result.Exit) { 
     
    168158    } 
    169159  
    170     // enter .. 
     160    // enter workdir 
    171161    FileSystem.setDirectory(workdir); 
    172162 
     
    175165    auto targz = new Process("tar czf " ~ packdir ~ ".tar.gz " ~ packdir, null); 
    176166    targz.execute(); 
    177     foreach(line; new LineIterator!(char)(targz.stderr)) 
    178     { 
    179         Stderr(line).newline; 
    180     } 
     167    Stderr.conduit.copy(targz.stderr); 
    181168    result = targz.wait(); 
    182169    if (result.reason != Process.Result.Exit) {