[libvirt-dbus PATCH] meson: Exclude some files from releases

Andrea Bolognani abologna at redhat.com
Wed May 6 10:16:24 UTC 2020


Both .mailmap and .travis.yml only make sense in the context of a
git checkout, so we should not include them in releases.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 meson.build     | 9 +++++++++
 tools/nodist.sh | 5 +++++
 2 files changed, 14 insertions(+)
 create mode 100755 tools/nodist.sh

diff --git a/meson.build b/meson.build
index e765ed6..341abe9 100644
--- a/meson.build
+++ b/meson.build
@@ -263,6 +263,15 @@ if git
     foreach file : [ 'libvirt-dbus.spec', 'AUTHORS.rst' ]
         meson.add_dist_script('tools/dist.sh', meson.build_root(), file)
     endforeach
+
+    nodist_files = [
+        '.mailmap',
+        '.travis.yml',
+    ]
+
+    foreach file : nodist_files
+        meson.add_dist_script('tools/nodist.sh', file)
+    endforeach
 endif
 
 
diff --git a/tools/nodist.sh b/tools/nodist.sh
new file mode 100755
index 0000000..f820147
--- /dev/null
+++ b/tools/nodist.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+FILE=$1
+
+rm -f $MESON_DIST_ROOT/$FILE
-- 
2.25.4




More information about the libvir-list mailing list