summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2020-10-13 11:51:20 +0200
committerPeter Krempa <pkrempa@redhat.com>2020-10-19 12:40:51 +0200
commitb1bac48b0b0e12feb83d3e8d33857f206508f526 (patch)
treea1c9a868ba1907e4b20fb1a612f396edb5990348 /scripts
parent73cdeed50232ebd1c0011bd878f79d9ed2691bd0 (diff)
downloadlibvirt-b1bac48b0b0e12feb83d3e8d33857f206508f526.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/meson-html-gen.py30
-rw-r--r--scripts/meson.build1
2 files changed, 0 insertions, 31 deletions
diff --git a/scripts/meson-html-gen.py b/scripts/meson-html-gen.py
deleted file mode 100755
index dcc11f37cf..0000000000
--- a/scripts/meson-html-gen.py
+++ /dev/null
@@ -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)
diff --git a/scripts/meson.build b/scripts/meson.build
index 59b3c9bacd..655ec0e0e2 100644
--- a/scripts/meson.build
+++ b/scripts/meson.build
@@ -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',