Skip to content

Commit

Permalink
hide SYSAPPS, SYSLIBS, LIBS in meta.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed Nov 7, 2023
1 parent 4c19ce7 commit dd337cc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1371,8 +1371,18 @@ def outputSUMMARY(f: typing.TextIO) -> None:
metamd.write("\n")
metamd.write("| run **X** | on **Y** |\n")
metamd.write("| --------- | -------- |\n")
def _canonicalize_hg(hg: str) -> str:
return hg.replace("SYSAPPS-", "").\
replace("SYSLIBS-", "").\
replace("LIBS-", "").\
replace(",", ", ").\
replace("{", "").\
replace("}", "")
for hg in transor.hgs:
metamd.write("| %s | %s |\n" % (hg.g.__repr__(), hg.h.__repr__()))
metamd.write("| %s | %s |\n" % (
_canonicalize_hg(hg.g.__repr__()),
_canonicalize_hg(hg.h.__repr__())
))

canonical_folder_name_README: str = canonical_folder_name + "/README.md"
if not os.path.exists("src/" + canonical_folder_name):
Expand Down

0 comments on commit dd337cc

Please sign in to comment.