aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2022-02-21 16:44:20 +0100
committerJan-Hendrik Willms <tleilax+github@gmail.com>2023-02-09 08:54:55 +0100
commit5b0f177c7254d9f76bbb37d39d3412d3186d2af3 (patch)
tree9a6786fda2258efb480bc3d547ec8b6599402169
parent2d31c6695fb96b9befa414a797f2f480f679f1da (diff)
first working version
-rw-r--r--Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 46f1f62..00e34c1 100644
--- a/Makefile
+++ b/Makefile
@@ -77,18 +77,19 @@ test-unit: $(CODECEPT)
catalogs: npm $(CATALOGS)
-# black = #000000
-# blue = #28497c
-# green = #00962d
-# grey = #6e6e6e
-# red = #cb1800
-# white = #ffffff
-# yellow = #ffad00
-icons:
- declare -A colorMap=(["black"]="#000000" ["green"]="#00962d" ["grey"]="#6e6e6e" ["red"]="#cb1800" ["white"]="#ffffff" ["yellow"]="#ffad00")
+clean-icons:
+ find public/assets/images/icons -type f -not -path '*blue*' -delete
optimize-icons: npm
- find public/assets/images/icons -type f | xargs -P0 npx svgo -q --config=config/svgo.config.js
+ find public/assets/images/icons/blue -type f | xargs -P0 npx svgo -q --config=config/svgo.config.js
+
+icons: optimize-icons
+ find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#000000/" {} > {}' | sed 's#icons/blue#icons/black#2' | sh
+ find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#00962d/" {} > {}' | sed 's#icons/blue#icons/green#2' | sh
+ find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#6e6e6e/" {} > {}' | sed 's#icons/blue#icons/grey#2' | sh
+ find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#cb1800/" {} > {}' | sed 's#icons/blue#icons/red#2' | sh
+ find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#ffffff/" {} > {}' | sed 's#icons/blue#icons/white#2' | sh
+ find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#ffad00/" {} > {}' | sed 's#icons/blue#icons/yellow#2' | sh
# default rules for gettext handling
js-%.pot: $(VUE_SOURCES)