Rev 9385 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9385 | Rev 9390 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | f.write(script_contents) |
23 | f.write(script_contents) |
Line 24... | Line 24... | ||
24 | 24 | ||
Line 25... | Line 25... | ||
25 | log("Done") |
25 | log("Done") |
26 | - | ||
27 | if __name__ == "__main__": |
- | |
28 | # Create _tools/cache folder if not exist |
26 | |
29 | os.makedirs(tools_cache, exist_ok = True) |
27 | if __name__ == "__main__": |
30 | # Create (in current directory) scripts that execute |
28 | # Create (in current directory) scripts that execute |
31 | # the same named scripts from _tools/workspace |
29 | # the same named scripts from _tools/workspace |
32 | tools_workspace_run_py = os.path.join(tools_workspace, "run.py") |
30 | tools_workspace_run_py = os.path.join(tools_workspace, "run.py") |
33 | tools_workspace_build_py = os.path.join(tools_workspace, "build.py") |
31 | tools_workspace_build_py = os.path.join(tools_workspace, "build.py") |
34 | create_workspace_script("run.py", tools_workspace_run_py) |
32 | create_workspace_script("run.py", tools_workspace_run_py) |
35 | create_workspace_script("build.py", tools_workspace_build_py) |
33 | create_workspace_script("build.py", tools_workspace_build_py) |
36 | # Initalize tup here |
34 | # Initalize tup here |
37 | # TODO: Do anything if tup doesn't exist |
- | |
38 | os.system("tup init") |
- | |
39 | # Download IMG to _tools/cache |
- |