From 0075e6ed3388e5880c6334633c3e016c34057edd Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 27 Nov 2023 18:32:31 +0000 Subject: [PATCH] nant no longer supported --- .nant/local.include | 289 -------------------------------------------- nant-color | 57 --------- 2 files changed, 346 deletions(-) delete mode 100644 .nant/local.include delete mode 100755 nant-color diff --git a/.nant/local.include b/.nant/local.include deleted file mode 100644 index be79d1cfce..0000000000 --- a/.nant/local.include +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nant-color b/nant-color deleted file mode 100755 index b36898681b..0000000000 --- a/nant-color +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env ruby - -def main - IO.popen("nant #{ARGV.join(' ')}") { |pipe| - pipe.sync = true - while str = pipe.gets - str.sub!(/\n+/, '') - puts colorize(str) - end - } -end - -def clear - return "\e[0m" -end - -def red(str) - return "\e[31m" + str + clear -end - -def green(str) - return "\e[32m" + str + clear -end - -def yellow(str) - return "\e[33m" + str + clear -end - -def black - return "\e[30m" -end - -def hide - return "\e[8m" -end - -def bright - return "\e[1m" -end - -def colorize(str) - str.sub!(/(error \w+:.*)/, red('\1')) - str.sub!(/(warning \w+:.*)/, yellow('\1')) - - str.sub!(/(Build Succeeded)/i, green('\1')) - str.sub!(/(Compilation succeeded)/, green('\1')) - str.sub!(/(\d+ warning\(s\))/, yellow('\1')) - str.sub!(/(Build Failed)/i, red('\1')) - - str.sub!(/(Tests run: \d+, Failures: 0, Not run: 0,.*)/, green('\1')) - str.sub!(/(Tests run: \d+, Failures: 0, Not run: [1-9].*)/, yellow('\1')) - str.sub!(/(Tests run: \d+, Failures: [1-9].*)/, red('\1')) - str.sub!(/(Test Case Failures:)/, red('\1')) - return str -end - -main()