1From 79da031e9811f3eef34b14cce419be93fea34319 Mon Sep 17 00:00:00 2001 2From: Alexander Kanavin <alex.kanavin@gmail.com> 3Date: Tue, 13 Jun 2017 18:10:06 +0300 4Subject: [PATCH] Run installation commands as shell jobs 5 6This greatly speeds up installation time on multi-core systems. 7 8Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/merge_requests/39] 9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 10 11--- 12 src/fullcolor/Makefile.am | 5 +++-- 13 src/spinner/Makefile.am | 7 ++++--- 14 src/symbolic/Makefile.am | 11 ++++++----- 15 3 files changed, 13 insertions(+), 10 deletions(-) 16 17diff --git a/src/fullcolor/Makefile.am b/src/fullcolor/Makefile.am 18index d73529b..b7d0808 100644 19--- a/src/fullcolor/Makefile.am 20+++ b/src/fullcolor/Makefile.am 21@@ -9,9 +9,10 @@ install-data-local: 22 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \ 23 context="`dirname $$file`"; \ 24 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ 25- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \ 26+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \ 27 done; \ 28- done; 29+ done; \ 30+ wait 31 32 ## FIXME we should add a way to remove links generated by icon mapping 33 uninstall-local: 34diff --git a/src/spinner/Makefile.am b/src/spinner/Makefile.am 35index c14caf6..322dc0d 100644 36--- a/src/spinner/Makefile.am 37+++ b/src/spinner/Makefile.am 38@@ -24,13 +24,14 @@ install-data-local: 39 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \ 40 context="`dirname $$file`"; \ 41 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ 42- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \ 43+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \ 44 done; \ 45 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \ 46 context="`dirname $$file`"; \ 47 $(mkdir_p) $(DESTDIR)$(themedir)/scalable-up-to-32/$$context; \ 48- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file $(DESTDIR)$(themedir)/scalable-up-to-32/$$file; \ 49- done 50+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file $(DESTDIR)$(themedir)/scalable-up-to-32/$$file & \ 51+ done; \ 52+ wait 53 54 uninstall-local: 55 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \ 56diff --git a/src/symbolic/Makefile.am b/src/symbolic/Makefile.am 57index 957c0ee..e1f8818 100644 58--- a/src/symbolic/Makefile.am 59+++ b/src/symbolic/Makefile.am 60@@ -34,18 +34,19 @@ install-data-local: 61 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \ 62 context="`dirname $$file`"; \ 63 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ 64- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \ 65+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \ 66 done; \ 67- done 68+ done; \ 69 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \ 70 context="`dirname $$file`"; \ 71 $(mkdir_p) $(DESTDIR)$(themedir)/scalable/$$context; \ 72- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $(DESTDIR)$(themedir)/scalable/$$file; \ 73+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $(DESTDIR)$(themedir)/scalable/$$file & \ 74 for size in $(symbolic_encode_sizes); do \ 75 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ 76- $(GTK_ENCODE_SYMBOLIC_SVG) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $$size -o $(DESTDIR)$(themedir)/$$size/$$context; \ 77+ $(GTK_ENCODE_SYMBOLIC_SVG) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $$size -o $(DESTDIR)$(themedir)/$$size/$$context & \ 78 done \ 79- done 80+ done; \ 81+ wait 82 83 uninstall-local: 84 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \ 85