Skip to content

Commit

Permalink
meta.md: add name, fix SYSAPPS/SYSLIBS/LIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed Nov 7, 2023
1 parent dd337cc commit 572bd19
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,17 +1369,18 @@ def outputSUMMARY(f: typing.TextIO) -> None:
metamd.write("\n")

metamd.write("\n")
metamd.write("| run **X** | on **Y** |\n")
metamd.write("| --------- | -------- |\n")
metamd.write("| Name | Run **X** | On **Y** |\n")
metamd.write("| ---- | --------- | -------- |\n")
def _canonicalize_hg(hg: str) -> str:
return hg.replace("SYSAPPS-", "").\
replace("SYSLIBS-", "").\
replace("LIBS-", "").\
replace(",", ", ").\
import re
hg = re.sub(r'[^-,]*SYSAPPS-', '', hg)
hg = re.sub(r'[^-,]*LIBS-', '', hg)
return hg.replace(",", ", ").\
replace("{", "").\
replace("}", "")
for hg in transor.hgs:
metamd.write("| %s | %s |\n" % (
metamd.write("| %s | %s | %s |\n" % (
hg.name,
_canonicalize_hg(hg.g.__repr__()),
_canonicalize_hg(hg.h.__repr__())
))
Expand Down

0 comments on commit 572bd19

Please sign in to comment.