Changeset 1229
- Timestamp:
- 07/08/09 11:03:12 (3 years ago)
- Files:
-
- trunk/tools/rdmd.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/rdmd.d
r1222 r1229 75 75 bool bailout; // bailout set by functions called in getopt if 76 76 // program should exit 77 boolloop; // set by --loop77 string[] loop; // set by --loop 78 78 bool addStubMain;// set by --main 79 79 string[] eval; // set by --eval … … 96 96 if (dryRun) chatty = true; // dry-run implies chatty 97 97 98 // Just evaluate this program! 99 if (loop) 100 { 101 return .eval(importWorld ~ "void main(char[][] args) { " 102 ~ "foreach (line; stdin.byLine()) {\n" ~ join(loop, "\n") 103 ~ ";\n} }"); 104 } 98 105 if (eval) 99 106 { 100 // Just evaluate this program!101 if (loop)102 {103 return .eval(importWorld ~ "void main(char[][] args) { "104 ~ "foreach (line; stdin.byLine()) {\n" ~ join(eval, "\n")105 ~ ";\n} }");106 }107 107 return .eval(importWorld ~ "void main(char[][] args) {\n" 108 108 ~ join(eval, "\n") ~ ";\n}"); … … 305 305 if (depsExitCode) 306 306 { 307 if (exists(depsFilename))308 {309 stderr.writeln(readText(depsFilename));310 }307 // if (exists(depsFilename)) 308 // { 309 // stderr.writeln(readText(depsFilename)); 310 // } 311 311 exit(depsExitCode); 312 312 }
