[libvirt PATCH 149/351] meson: scripts: introduce gen-def-files.sh script

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

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 scripts/gen-def-files.sh | 5 +++++
 scripts/meson.build      | 1 +
 src/Makefile.am          | 8 --------
 3 files changed, 6 insertions(+), 8 deletions(-)
 create mode 100755 scripts/gen-def-files.sh

diff --git a/scripts/gen-def-files.sh b/scripts/gen-def-files.sh
new file mode 100755
index 00000000000..1ec7b083802
--- /dev/null
+++ b/scripts/gen-def-files.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+printf 'EXPORTS\n'
+sed -e '/^$/d; /#/d; /:/d; /}/d; /\*/d; /LIBVIRT_/d' \
+    -e 's/[  ]*\(.*\)\;/    \1/g' $1
diff --git a/scripts/meson.build b/scripts/meson.build
index 5d3f0af4793..aa8c872a814 100644
--- a/scripts/meson.build
+++ b/scripts/meson.build
@@ -11,6 +11,7 @@ scripts = [
   'check-symsorting.py',
   'dtrace2systemtap.py',
   'esx_vi_generator.py',
+  'gen-def-files.sh',
   'genaclperms.py',
   'genpolkit.py',
   'gensystemtap.py',
diff --git a/src/Makefile.am b/src/Makefile.am
index 50807ee7491..b98169f27e7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -302,14 +302,6 @@ libvirt.syms: libvirt_public.syms $(USED_SYM_FILES) \
 	chmod a-w $@-tmp && \
 	mv $@-tmp libvirt.syms
 
-%.def: %.syms
-	$(AM_V_GEN)rm -f -- $@-tmp $@ ; \
-	printf 'EXPORTS\n' > $@-tmp && \
-	sed -e '/^$$/d; /#/d; /:/d; /}/d; /\*/d; /LIBVIRT_/d' \
-	    -e 's/[	 ]*\(.*\)\;/    \1/g' $^ >> $@-tmp && \
-	chmod a-w $@-tmp && \
-	mv $@-tmp $@
-
 # Empty source list - it merely links a bunch of convenience libs together
 libvirt_la_SOURCES =
 libvirt_la_LDFLAGS = \
-- 
2.26.2




[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