diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-06-15 09:30:41 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2023-06-15 09:30:41 +0000 |
| commit | c46fc58be5764a5865d50b10494d7e5b5d16f5a2 (patch) | |
| tree | 01d79c2360f29b6c789f2bb572fd9028a2846079 /Makefile | |
| parent | 9ed6e1c8bc871e6c24493d38c918ad4356a06ced (diff) | |
create other icons from the blue ones, fixes #2091
Closes #2091
Merge request studip/studip!1541
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -77,8 +77,19 @@ test-unit: $(CODECEPT) catalogs: npm $(CATALOGS) +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) |
