Advertisement
ruizit0

Untitled

Aug 8th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. // Process command line arguments
  2. exec("core/parseArgs.cs");
  3.  
  4. // Parse the executable arguments with the standard
  5. // function from core/main.cs
  6. defaultParseArgs();
  7.  
  8. function compileFiles(%pattern)
  9. {
  10. %path = filePath(%pattern);
  11.  
  12. %saveDSO = $Scripts::OverrideDSOPath;
  13. %saveIgnore = $Scripts::ignoreDSOs;
  14.  
  15. $Scripts::OverrideDSOPath = %path;
  16. $Scripts::ignoreDSOs = false;
  17. %mainCsFile = "main.cs";//makeFullPath("main.cs");
  18. %localConfigFile = "config_local.cs";
  19. %ddctdConfigFile = "ddctd_config.cs";
  20.  
  21. for (%file = findFirstFileMultiExpr(%pattern); %file !$= ""; %file = findNextFileMultiExpr(%pattern))
  22. {
  23. // we don't want to try and compile the primary main.cs
  24. if(%mainCsFile !$= %file && %localConfigFile !$= %file && %ddctdConfigFile !$= %file)
  25. compile(%file, true);
  26. }
  27.  
  28. $Scripts::OverrideDSOPath = %saveDSO;
  29. $Scripts::ignoreDSOs = %saveIgnore;
  30. }
  31.  
  32. if($compileAll)
  33. {
  34. echo(" --- Compiling all files ---");
  35. compileFiles("*.cs");
  36. compileFiles("*.gui");
  37. compileFiles("*.ts");
  38. echo(" --- Exiting after compile ---");
  39. quit();
  40. }
  41. else
  42. {
  43. exec("scripts/root.cs");
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement