Work around ctx.run kwargs for now

This commit is contained in:
Daniel A. Wozniak 2023-01-24 23:53:58 -07:00 committed by Megan Wilhite
parent 1aa74894dc
commit 042909e2bb

View file

@ -28,8 +28,12 @@ doc = command_group(name="docs", help="Manpages tools", description=__doc__)
name="man",
)
def man(ctx: Context):
ctx.run("make", "clean", cwd="doc/", check=True)
ctx.run("make", "man", "SHPINXOPTS=-W", cwd="doc/", check=True)
#XXX tools update
#ctx.run("make", "clean", cwd="doc/", check=True)
#ctx.run("make", "man", "SHPINXOPTS=-W", cwd="doc/", check=True)
os.chdir("doc/")
ctx.run("make", "clean", check=True)
ctx.run("make", "man", "SHPINXOPTS=-W", check=True)
for root, dirs, files in os.walk("doc/_build/man"):
for file in files:
shutil.copy(os.path.join(root, file), os.path.join("doc/man", file))