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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux