Changeset 1874
- Timestamp:
- 03/10/07 13:58:02 (2 years ago)
- Files:
-
- trunk/install/snapshot/snapshotbuilder.d (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/install/snapshot/snapshotbuilder.d
r1871 r1874 4 4 import tango.io.FilePath; 5 5 import tango.io.FileConst; 6 import tango.text.stream.LineIterator;7 6 8 7 import tango.io.Stdout; … … 127 126 auto bld = new Process(buildcmd, null); 128 127 bld.execute(); 129 foreach(line; new LineIterator!(char)(bld.stderr)) 130 { 131 Stderr(line).newline; 132 } 128 Stderr.conduit.copy(bld.stderr); 133 129 result = bld.wait(); 134 130 if (result.reason != Process.Result.Exit) { … … 144 140 auto chmod = new Process("chmod 644 " ~ chmodfiles, null); 145 141 chmod.execute(); 146 foreach(line; new LineIterator!(char)(chmod.stderr)) 147 { 148 Stderr(line).newline; 149 } 142 Stderr.conduit.copy(chmod.stderr); 150 143 result = chmod.wait(); 151 144 if (result.reason != Process.Result.Exit) { … … 154 147 } 155 148 156 // remove patches/ , install/win32/, doc s and maybemore149 // remove patches/ , install/win32/, doc/ and more 157 150 Stdout("!! Removing " ~ rmpaths).newline; 158 151 auto rm = new Process("rm -rf " ~ rmpaths, null); 159 152 rm.execute(); 160 foreach(line; new LineIterator!(char)(rm.stderr)) 161 { 162 Stderr(line).newline; 163 } 153 Stderr.conduit.copy(rm.stderr); 164 154 result = rm.wait(); 165 155 if (result.reason != Process.Result.Exit) { … … 168 158 } 169 159 170 // enter ..160 // enter workdir 171 161 FileSystem.setDirectory(workdir); 172 162 … … 175 165 auto targz = new Process("tar czf " ~ packdir ~ ".tar.gz " ~ packdir, null); 176 166 targz.execute(); 177 foreach(line; new LineIterator!(char)(targz.stderr)) 178 { 179 Stderr(line).newline; 180 } 167 Stderr.conduit.copy(targz.stderr); 181 168 result = targz.wait(); 182 169 if (result.reason != Process.Result.Exit) {












