blob: c4d7e2583bdef7ca87aa1ec2ddbdd6c1ca442f74 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 8dcd73b45a660dbdc560676835ba46f495334f14 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: Pending
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10---
11 src/fullcolor/Makefile.am | 3 ++-
12 src/spinner/Makefile.am | 5 +++--
13 src/symbolic/Makefile.am | 7 ++++---
14 3 files changed, 9 insertions(+), 6 deletions(-)
15
16diff --git a/src/fullcolor/Makefile.am b/src/fullcolor/Makefile.am
17index 1c940a5..3998ee6 100644
18--- a/src/fullcolor/Makefile.am
19+++ b/src/fullcolor/Makefile.am
20@@ -9,9 +9,10 @@ install-data-local:
21 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \
22 context="`dirname $$file`"; \
23 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
24- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \
25+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \
26 done; \
Brad Bishopa34c0302019-09-23 22:34:48 -040027- done;
28+ done; \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050029+ wait
30
31 ## FIXME we should add a way to remove links generated by icon mapping
32 uninstall-local:
33diff --git a/src/spinner/Makefile.am b/src/spinner/Makefile.am
34index 86f4d7c..3fae8c1 100644
35--- a/src/spinner/Makefile.am
36+++ b/src/spinner/Makefile.am
37@@ -24,13 +24,14 @@ install-data-local:
38 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \
39 context="`dirname $$file`"; \
40 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
41- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \
42+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \
43 done; \
44 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \
45 context="`dirname $$file`"; \
46 $(mkdir_p) $(DESTDIR)$(themedir)/scalable-up-to-32/$$context; \
47- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file $(DESTDIR)$(themedir)/scalable-up-to-32/$$file; \
48+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32/$$file $(DESTDIR)$(themedir)/scalable-up-to-32/$$file & \
Brad Bishopa34c0302019-09-23 22:34:48 -040049- done
50+ done; \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050051+ wait
52
53 uninstall-local:
54 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable-up-to-32; find . -name "*.svg"`; do \
55diff --git a/src/symbolic/Makefile.am b/src/symbolic/Makefile.am
56index 24aac9b..61ba071 100644
57--- a/src/symbolic/Makefile.am
58+++ b/src/symbolic/Makefile.am
59@@ -25,18 +25,19 @@ install-data-local:
60 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \
61 context="`dirname $$file`"; \
62 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
63- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \
64+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \
65 done; \
Brad Bishopa34c0302019-09-23 22:34:48 -040066- done
67+ done; \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050068 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \
69 context="`dirname $$file`"; \
70 $(mkdir_p) $(DESTDIR)$(themedir)/scalable/$$context; \
71- $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $(DESTDIR)$(themedir)/scalable/$$file; \
72+ $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $(DESTDIR)$(themedir)/scalable/$$file & \
73 for size in $(symbolic_encode_sizes); do \
74 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
75- $(GTK_ENCODE_SYMBOLIC_SVG) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $$size -o $(DESTDIR)$(themedir)/$$size/$$context; \
76+ $(GTK_ENCODE_SYMBOLIC_SVG) $(top_srcdir)/$(SVGOUTDIR)/scalable/$$file $$size -o $(DESTDIR)$(themedir)/$$size/$$context & \
77 done \
Brad Bishopa34c0302019-09-23 22:34:48 -040078- done
79+ done; \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050080+ wait
81
82 uninstall-local:
83 for file in `cd $(top_srcdir)/$(SVGOUTDIR)/scalable; find . -name "*.svg"`; do \
84--
852.11.0
86