Example #1
0
 public virtual void SetupBinariesFor(MooDirPackage package)
 {
     foreach (var exe in package.Tools)
     {
         SetupUnixShellScriptForTool(exe, BinDirectory);
         SetupWindowsBatchScriptForTool(exe, BinDirectory);
     }
 }
Example #2
0
 public virtual void DeleteBinariesFor(MooDirPackage package)
 {
     foreach (var exe in package.Tools)
     {
         var name = System.IO.Path.GetFileNameWithoutExtension(exe);
         var unix = System.IO.Path.Combine(BinDirectory, name);
         var bat  = System.IO.Path.Combine(BinDirectory, name + ".bat");
         unix.AsFile().Delete();
         bat.AsFile().Delete();
     }
 }