summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2020-07-28 17:51:53 +0200
committerPavel Hrdina <phrdina@redhat.com>2020-08-03 09:27:06 +0200
commit932a5b5499ae2faffc77cee6f87a4a9d6e1f13b0 (patch)
treede4f2701bde4f531b5300f9a31fc803a0a489172 /scripts
parentc3669c8675a7fe8726cc023b7600f3b45fa2b833 (diff)
downloadlibvirt-932a5b5499ae2faffc77cee6f87a4a9d6e1f13b0.tar.gz
meson: generate and distribute spec files and AUTHORS
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-xscripts/meson-dist.py14
-rwxr-xr-xscripts/meson-gen-authors.py8
-rw-r--r--scripts/meson.build2
3 files changed, 24 insertions, 0 deletions
diff --git a/scripts/meson-dist.py b/scripts/meson-dist.py
new file mode 100755
index 0000000000..a1d36c2533
--- /dev/null
+++ b/scripts/meson-dist.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+meson_build_root = sys.argv[1]
+file_name = sys.argv[2]
+
+meson_dist_root = os.environ['MESON_DIST_ROOT']
+
+os.system('cp {0} {1}'.format(
+ os.path.join(meson_build_root, file_name),
+ os.path.join(meson_dist_root, file_name)
+))
diff --git a/scripts/meson-gen-authors.py b/scripts/meson-gen-authors.py
new file mode 100755
index 0000000000..f58bf6383b
--- /dev/null
+++ b/scripts/meson-gen-authors.py
@@ -0,0 +1,8 @@
+#!/usr/bin/env python3
+
+import os
+
+meson_source_root = os.environ['MESON_SOURCE_ROOT']
+
+os.chdir(meson_source_root)
+os.system('git log --pretty=format:"%aN <%aE>" | sort -u')
diff --git a/scripts/meson.build b/scripts/meson.build
index 74662db4b0..39b0e899f4 100644
--- a/scripts/meson.build
+++ b/scripts/meson.build
@@ -18,6 +18,8 @@ scripts = [
'header-ifdef.py',
'hvsupport.py',
'hyperv_wmi_generator.py',
+ 'meson-dist.py',
+ 'meson-gen-authors.py',
'meson-gen-def.py',
'meson-gen-sym.py',
'meson-html-gen.py',