mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
scripts: meson-html-gen: Remove
The script was obscuring what's happening and not reporting errors properly. Remove it since it's no longer used now. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
73cdeed502
commit
b1bac48b0b
@ -1,30 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import subprocess
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("xsltproc", type=str, help="path to xsltproc bin")
|
||||
parser.add_argument("xmllint", type=str, help="path to xmllint bin")
|
||||
parser.add_argument("builddir", type=str, help="build root dir path")
|
||||
parser.add_argument("timestamp", type=str, help="docs timestamp")
|
||||
parser.add_argument("style", type=str, help="XSL stile file")
|
||||
parser.add_argument("infile", type=str, help="path to source HTML file")
|
||||
parser.add_argument("htmlfile", type=str, help="path to generated HTML file")
|
||||
parser.add_argument("pagesrc", type=str, default="", nargs='?', help="(optional) path to source file used for edit this page")
|
||||
args = parser.parse_args()
|
||||
|
||||
html = subprocess.run(
|
||||
[
|
||||
args.xsltproc,
|
||||
'--stringparam', 'pagesrc', args.pagesrc,
|
||||
'--stringparam', 'builddir', args.builddir,
|
||||
'--stringparam', 'timestamp', args.timestamp,
|
||||
'--nonet', args.style, args.infile,
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
)
|
||||
|
||||
with open(args.htmlfile, 'wb') as outfile:
|
||||
outfile.write(html.stdout)
|
@ -22,7 +22,6 @@ scripts = [
|
||||
'meson-gen-authors.py',
|
||||
'meson-gen-def.py',
|
||||
'meson-gen-sym.py',
|
||||
'meson-html-gen.py',
|
||||
'meson-install-dirs.py',
|
||||
'meson-install-symlink.py',
|
||||
'meson-install-web.py',
|
||||
|
Loading…
Reference in New Issue
Block a user