Skip to content
Snippets Groups Projects
Commit eb825134 authored by s2870355's avatar s2870355
Browse files

fix static dot

parent c97ecdaf
No related branches found
No related tags found
No related merge requests found
Pipeline #76696 canceled
......@@ -155,7 +155,7 @@ def create_dot(compile_info : list[job_data]) -> None:
output = output + "\t" + j.location.replace(os.sep, "_").replace("-", "_").replace(".", "_")+ ";\n"
for d in j.depends:
output = output + "\t\t" + d.replace(os.sep, "_").replace("-", "_").replace(".", "_") + " -> " + j.location.replace(os.sep, "_").replace("-", "_").replace(".", "_") + ";\n"
return output + "}"
return output.replace('/', '') + "}"
def generate_ci(compile_info : list[job_data]) -> str:
output = ""
......@@ -168,11 +168,12 @@ def generate_ci(compile_info : list[job_data]) -> str:
return output
info = process_sh(files_sh=get_all_sh())
if "--static-dot" in sys.argv:
print(create_dot(info))
exit()
if "--ci" in sys.argv:
with open(os.path.join(dir_path, "gitlab-ci-generated.yml"), 'w') as ci:
ci.write(generate_ci(info).replace("\t", " ").replace("\\", "\\\\"))
else:
if not run_ci(compile_info=info):
sys.exit(1)
if "--static-dot" in sys.argv:
print(create_dot(info))
\ No newline at end of file
sys.exit(1)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment