From 067f88ff428d956486d77167f16bd5597de63363 Mon Sep 17 00:00:00 2001 From: bux578 Date: Tue, 16 Feb 2016 15:46:10 +0100 Subject: [PATCH] change make.py to accept --ci arg --- tools/make.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/make.py b/tools/make.py index 92ab4f02e6..ed18085ef0 100644 --- a/tools/make.py +++ b/tools/make.py @@ -76,6 +76,8 @@ signature_blacklist = ["ace_server.pbo"] importantFiles = ["mod.cpp", "README.md", "docs\\README_DE.md", "docs\\README_PL.md", "AUTHORS.txt", "LICENSE", "logo_ace3_ca.paa"] versionFiles = ["README.md", "docs\\README_DE.md", "docs\\README_PL.md", "mod.cpp"] +ciBuild = False # Used for CI builds + ############################################################################### # http://akiscode.com/articles/sha-1directoryhash.shtml # Copyright (c) 2009 Stephen Akiki @@ -757,6 +759,7 @@ def main(argv): global dssignfile global prefix global pbo_name_prefix + global ciBuild if sys.platform != "win32": print_error("Non-Windows platform (Cygwin?). Please re-run from cmd.") @@ -860,6 +863,10 @@ See the make.cfg file for additional build options. else: version_update = False + if "--ci" in argv: + argv.remove("--ci") + ciBuild = True + print_yellow("\nCheck external references is set to {}".format(str(check_external))) # Get the directory the make script is in. @@ -1434,7 +1441,7 @@ if __name__ == "__main__": d,h,m,s = Fract_Sec(timeit.default_timer() - start_time) print("\nTotal Program time elapsed: {0:2}h {1:2}m {2:4.5f}s".format(h,m,s)) - if "--ci" in sys.argv: + if ciBuild: sys.exit(0) input("Press Enter to continue...")