Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 1 | From 79da031e9811f3eef34b14cce419be93fea34319 Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Tue, 13 Jun 2017 18:10:06 +0300 |
| 4 | Subject: [PATCH] Run installation commands as shell jobs |
| 5 | |
| 6 | This greatly speeds up installation time on multi-core systems. |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 10 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | --- |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 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(-) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | |
| 17 | diff --git a/src/fullcolor/Makefile.am b/src/fullcolor/Makefile.am |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 18 | index d73529b..b7d0808 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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; \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 28 | - done; |
| 29 | + done; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 30 | + wait |
| 31 | |
| 32 | ## FIXME we should add a way to remove links generated by icon mapping |
| 33 | uninstall-local: |
| 34 | diff --git a/src/spinner/Makefile.am b/src/spinner/Makefile.am |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 35 | index c14caf6..322dc0d 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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; \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 49 | - done |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 50 | + $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file $(DESTDIR)$(themedir)/scalable-up-to-32/$$file & \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 51 | + done; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 52 | + wait |
| 53 | |
| 54 | uninstall-local: |
| 55 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \ |
| 56 | diff --git a/src/symbolic/Makefile.am b/src/symbolic/Makefile.am |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 57 | index 957c0ee..e1f8818 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 58 | --- a/src/symbolic/Makefile.am |
| 59 | +++ b/src/symbolic/Makefile.am |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 60 | @@ -34,18 +34,19 @@ install-data-local: |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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; \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 67 | - done |
| 68 | + done; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 79 | - done |
| 80 | + done; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 81 | + wait |
| 82 | |
| 83 | uninstall-local: |
| 84 | for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \ |