diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2020-07-23 18:40:12 +0200 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2020-08-03 09:27:06 +0200 |
commit | 70629df0c2397a34fee13846cca032851e650dfa (patch) | |
tree | fadb7f035c321ccc2fc947dc374b0900e9a6d517 /scripts | |
parent | 18c729d83f5bdbed4474056cda2bf544ac322c5c (diff) | |
download | libvirt-70629df0c2397a34fee13846cca032851e650dfa.tar.gz |
meson: add rule to build and install only web documentation
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/meson-install-web.py | 10 | ||||
-rw-r--r-- | scripts/meson.build | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/scripts/meson-install-web.py b/scripts/meson-install-web.py new file mode 100755 index 0000000000..a03f8523cd --- /dev/null +++ b/scripts/meson-install-web.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 + +import os +import shutil +import sys + +for desc in sys.argv[1:]: + inst = desc.split(':') + os.makedirs(inst[1], exist_ok=True) + shutil.copy(inst[0], inst[1]) diff --git a/scripts/meson.build b/scripts/meson.build index 39b0e899f4..59b3c9bacd 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -25,6 +25,7 @@ scripts = [ 'meson-html-gen.py', 'meson-install-dirs.py', 'meson-install-symlink.py', + 'meson-install-web.py', 'meson-python.sh', 'meson-timestamp.py', 'mock-noinline.py', |