[libvirt] [PATCH] build: use fewer cat processes

Eric Blake eblake at redhat.com
Thu Dec 13 22:45:26 UTC 2012


* src/Makefile.am (libvirt.syms): Let cat loop for us.
---

I'll wait for a review before pushing, rather than claiming it is trivial.

 src/Makefile.am | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 33b4ab0..cf6096a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1457,9 +1457,7 @@ libvirt.syms: libvirt_public.syms $(USED_SYM_FILES) \
 	printf '\n\n# Private symbols\n\n' >>$@-tmp && \
 	printf 'LIBVIRT_PRIVATE_$(VERSION) {\n\n'  >>$@-tmp && \
 	printf 'global:\n\n' >>$@-tmp && \
-	for file in $(USED_SYM_FILES); do \
-	    cat $$file >>$@-tmp; \
-	done && \
+	cat $(USED_SYM_FILES) >>$@-tmp && \
 	printf '\n\nlocal:\n*;\n\n};' >>$@-tmp && \
 	chmod a-w $@-tmp && \
 	mv $@-tmp libvirt.syms
-- 
1.8.0.2




More information about the libvir-list mailing list