From 4eea7771c6c84637319afc7cc270d077cc75b1d2 Mon Sep 17 00:00:00 2001 From: sandyx Date: Tue, 4 Feb 2025 16:06:27 -0600 Subject: [PATCH] standalone --- build.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.rb b/build.rb index f4af12e..52d1dd2 100755 --- a/build.rb +++ b/build.rb @@ -14,7 +14,6 @@ $CC="gcc" CFLAGS="-O1 -march=native -std=c11" $EFLAGS = "" #extra flags -APPNAME="chess" SRCDIR="src" BUILDDIR="build" INCLUDE="" @@ -23,7 +22,11 @@ EXT=".c" #extension of source file #should maybe use environment variables for these #standalone funcs -unless __FILE__ == $0 +if __FILE__ == $0 + ANSI_RED = "\e[31m" + ANSI_CLEAR = "\e[0m" + RUB = "#{ANSI_RED}RUB#{ANSI_CLEAR}" + def error(msg) puts "#{RUB}: error: #{msg}" exit 1