Changeset 6
- Timestamp:
- 01/11/07 00:34:19 (2 years ago)
- Files:
-
- trunk/proj/buildme.d (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/proj/buildme.d
r5 r6 11 11 * Examples: 12 12 * ------ 13 * dmd -run buildme.d -release -run 13 * dmd -run buildme.d -release -clean -run 14 * dmd -run buildme.d -release -clean -run 14 15 * ------ 15 16 * … … 111 112 char[][] files = scan(obj_path, ".obj")~scan(obj_path, ".o")~scan(obj_path, ".map")~scan(obj_path, bin_ext); 112 113 foreach(char[] file; files) 113 std.file.remove(file); 114 { std.file.remove(file); 115 //writefln(file); 116 } 114 117 115 118 // Remove all intermediate folders … … 187 190 char[][] docs = scan(".", ".html"); 188 191 foreach (char[] doc; docs) 189 std.file.remove(doc); 192 { std.file.remove(doc); 193 //writefln(doc); 194 } 190 195 191 196 // Build modules file for candydoc … … 202 207 } 203 208 209 /** 210 * Rename and move documentation files, and delete intermediate candydoc files.*/ 204 211 void docsPostProcess() 205 212 { … … 212 219 { copy(doc, dest); 213 220 std.file.remove(doc); 221 //writefln(doc); 214 222 } 215 223 } … … 274 282 275 283 // Clean docs and generate candydoc module 276 if (ddoc) 277 docsPreProcess(); 284 try 285 { if (ddoc) 286 docsPreProcess(); 287 } catch (Exception e) 288 { writefln(e); 289 writefln("Error with optional documentation step. Continuing."); 290 } 278 291 279 292 // Compile … … 297 310 298 311 // Move Docs 299 if (ddoc) 300 docsPostProcess(); 312 try 313 { if (ddoc) 314 docsPostProcess(); 315 } catch (Exception e) 316 { writefln(e); 317 writefln("Error with optional documentation step. Continuing."); 318 } 301 319 302 320 // Clean 303 if (_clean) 304 clean(); 321 try 322 { if (_clean) 323 clean(); 324 } catch (Exception e) 325 { writefln(e); 326 writefln("Error with optional clean step. Continuing."); 327 } 305 328 306 329 writefln("The build completed successfully.");
