Skip to content

Commit

Permalink
Fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ailrun committed Sep 27, 2024
1 parent 3de6981 commit c4636e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ CoqMakefile.mk*
theories/html/

# Generated coq dependency graph
*.dot
*.svg
dep.dot
dep.html

# Editor related files
## Emacs
Expand Down
3 changes: 2 additions & 1 deletion scripts/generate_dep.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def data_of_depline(depline: str) -> str:
raise ValueError(f"Broken Dependency: \"{depline}\"")

def gen_graph() -> str:
newline = "\n"
return textwrap.dedent(f"""
digraph Mcltt {{
graph [cluster=true,fontsize=28,label="Mcltt",labeljust=l,labelloc=t,penwidth=2,size=15,splines=true,tooltip=""];
Expand All @@ -98,7 +99,7 @@ def gen_graph() -> str:
{core_subgraph_decl("Syntactic")}
{default_subgraph_decl("Extraction")}
{default_subgraph_decl("Frontend")}
{textwrap.indent("\n".join(data_of_depline(depline) for depline in sys.stdin), " ").lstrip()}
{textwrap.indent(newline.join(data_of_depline(depline) for depline in sys.stdin), " ").lstrip()}
}}""")

print(gen_graph())
2 changes: 1 addition & 1 deletion theories/CoqMakefile.mk.local-late
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ coqdoc: html
cp -R $(EXTRA_DIR)/resources html

$(DEPGRAPHDOT): $(VFILES) $(DEPGRAPHSCRIPT)
@coqdep $(VFILES) -f _CoqProject | python3 "$(DEPGRAPHSCRIPT)" | tred -o "$@"
@coqdep $(VFILES) -f _CoqProject | python3 "$(DEPGRAPHSCRIPT)" | tred > "$@"

$(DEPGRAPHDOC): $(DEPGRAPHDOT) $(DEPPOSTPROCESSSCRIPT)
@dot -T svg "$(DEPGRAPHDOT)" | python3 "$(DEPPOSTPROCESSSCRIPT)" > "$(DEPGRAPHDOC)"
Expand Down

0 comments on commit c4636e1

Please sign in to comment.