[adwaita-icon-theme: 1/2] Run installation commands as shell jobs




commit a2f3046dbec53be753ae0472151561dd38e7a15a
Author: Alexander Kanavin <alex kanavin gmail com>
Date:   Tue Jun 13 18:10:06 2017 +0300

    Run installation commands as shell jobs
    
    This greatly speeds up installation time on multi-core systems:
    for example on my machine from 4 minutes to 1 minute.
    
    Yocto project has been carrying this patch for several years,
    it's been tested on all kinds of build hosts under all kinds of
    system loads, so it's completely robust.

 src/fullcolor/Makefile.am |  5 +++--
 src/spinner/Makefile.am   |  7 ++++---
 src/symbolic/Makefile.am  | 11 ++++++-----
 3 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/src/fullcolor/Makefile.am b/src/fullcolor/Makefile.am
index d73529b82..b7d0808bd 100644
--- a/src/fullcolor/Makefile.am
+++ b/src/fullcolor/Makefile.am
@@ -9,9 +9,10 @@ install-data-local:
                for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \
                        context="`dirname $$file`"; \
                        $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
-                       $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file 
$(DESTDIR)$(themedir)/$$size/$$file; \
+                       $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file 
$(DESTDIR)$(themedir)/$$size/$$file & \
                done; \
-       done;
+       done; \
+       wait
 
 ## FIXME we should add a way to remove links generated by icon mapping
 uninstall-local:
diff --git a/src/spinner/Makefile.am b/src/spinner/Makefile.am
index c14caf68c..322dc0df3 100644
--- a/src/spinner/Makefile.am
+++ b/src/spinner/Makefile.am
@@ -24,13 +24,14 @@ install-data-local:
              for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \
                      context="`dirname $$file`"; \
                      $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
-                     $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file 
$(DESTDIR)$(themedir)/$$size/$$file; \
+                     $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file 
$(DESTDIR)$(themedir)/$$size/$$file & \
              done; \
        for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \
                context="`dirname $$file`"; \
                $(mkdir_p) $(DESTDIR)$(themedir)/scalable-up-to-32/$$context; \
-               $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file 
$(DESTDIR)$(themedir)/scalable-up-to-32/$$file; \
-       done
+               $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file 
$(DESTDIR)$(themedir)/scalable-up-to-32/$$file & \
+       done; \
+       wait
 
 uninstall-local:
              for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \
diff --git a/src/symbolic/Makefile.am b/src/symbolic/Makefile.am
index 957c0ee19..e1f88183b 100644
--- a/src/symbolic/Makefile.am
+++ b/src/symbolic/Makefile.am
@@ -34,18 +34,19 @@ install-data-local:
                for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \
                        context="`dirname $$file`"; \
                        $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
-                       $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file 
$(DESTDIR)$(themedir)/$$size/$$file; \
+                       $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file 
$(DESTDIR)$(themedir)/$$size/$$file & \
                done; \
-       done
+       done; \
        for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \
                context="`dirname $$file`"; \
                $(mkdir_p) $(DESTDIR)$(themedir)/scalable/$$context; \
-               $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file 
$(DESTDIR)$(themedir)/scalable/$$file; \
+               $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file 
$(DESTDIR)$(themedir)/scalable/$$file & \
                for size in $(symbolic_encode_sizes); do \
                        $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
-                       $(GTK_ENCODE_SYMBOLIC_SVG) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $$size -o 
$(DESTDIR)$(themedir)/$$size/$$context; \
+                       $(GTK_ENCODE_SYMBOLIC_SVG) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $$size -o 
$(DESTDIR)$(themedir)/$$size/$$context & \
                done \
-       done
+       done; \
+       wait
 
 uninstall-local:
        for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \


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