mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
change make.py to accept --ci arg
This commit is contained in:
@ -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"]
|
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"]
|
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
|
# http://akiscode.com/articles/sha-1directoryhash.shtml
|
||||||
# Copyright (c) 2009 Stephen Akiki
|
# Copyright (c) 2009 Stephen Akiki
|
||||||
@ -757,6 +759,7 @@ def main(argv):
|
|||||||
global dssignfile
|
global dssignfile
|
||||||
global prefix
|
global prefix
|
||||||
global pbo_name_prefix
|
global pbo_name_prefix
|
||||||
|
global ciBuild
|
||||||
|
|
||||||
if sys.platform != "win32":
|
if sys.platform != "win32":
|
||||||
print_error("Non-Windows platform (Cygwin?). Please re-run from cmd.")
|
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:
|
else:
|
||||||
version_update = False
|
version_update = False
|
||||||
|
|
||||||
|
if "--ci" in argv:
|
||||||
|
argv.remove("--ci")
|
||||||
|
ciBuild = True
|
||||||
|
|
||||||
print_yellow("\nCheck external references is set to {}".format(str(check_external)))
|
print_yellow("\nCheck external references is set to {}".format(str(check_external)))
|
||||||
|
|
||||||
# Get the directory the make script is in.
|
# 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)
|
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))
|
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)
|
sys.exit(0)
|
||||||
|
|
||||||
input("Press Enter to continue...")
|
input("Press Enter to continue...")
|
||||||
|
Reference in New Issue
Block a user