diff --git a/compile-all.py b/compile-all.py index e73254d7..b8183c70 100755 --- a/compile-all.py +++ b/compile-all.py @@ -3,6 +3,11 @@ import os import sys import subprocess +c_null = "\x1b[00;00m" +c_red = "\x1b[31;01m" +c_blue = "\x1b[34;01m" +c_green = "\x1b[32;01m" + SM_INCLUDES = "includes" SPCOMP = "./spcomp" @@ -14,12 +19,13 @@ if __name__ == "__main__": Plugins.append(Directory) for Plugin in Plugins: - print("Compiling {0}".format(Plugin)) + print(c_red + "### Compiling {0}".format(Plugin) + c_null) SourcePath = os.path.join(Plugin, "scripting") Path, Directories, Files = next(os.walk(SourcePath)) for File in Files: if File.endswith(".sp"): + print(c_green + "# Compiling {0} ({1})".format(os.path.basename(File), Plugin) + c_null) SourcePath = os.path.join(Path, File) IncludePath = os.path.join(Path, "include") OutDir = "plugins" @@ -35,3 +41,5 @@ if __name__ == "__main__": subprocess.run(Compiler, check=True) except Exception: sys.exit(1) + + print("") diff --git a/compile.py b/compile.py index fbd93357..a9efdff3 100755 --- a/compile.py +++ b/compile.py @@ -21,8 +21,8 @@ if __name__ == "__main__": SourcePath = os.path.join(Plugin, "scripting") Path, Directories, Files = next(os.walk(SourcePath)) for File in Files: - print('\n' + c_green + "# Compiling {0} ({1})".format(os.path.basename(File), Plugin) + c_null) if File.endswith(".sp"): + print(c_green + "# Compiling {0} ({1})".format(os.path.basename(File), Plugin) + c_null) SourcePath = os.path.join(Path, File) IncludePath = os.path.join(Path, "include") OutDir = "plugins" @@ -38,3 +38,5 @@ if __name__ == "__main__": subprocess.run(Compiler, check=True) except Exception: sys.exit(1) + + print("")