aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Daniel Ruiz de Alegría <daniel@drasite.com>2021-04-14 17:20:21 +0200
committerLibravatar Daniel Ruiz de Alegría <daniel@drasite.com>2021-04-14 17:20:21 +0200
commitab98aa7122914ad057e0fa7bc11e4b530e6d426a (patch)
tree56cec4db67893733502385ffd573704e83f2862d /Makefile
parentad73a3aa6745157a9e4e3eb33517f7a372ab2965 (diff)
downloadflat-remix-ab98aa7122914ad057e0fa7bc11e4b530e6d426a.tar.gz
flat-remix-ab98aa7122914ad057e0fa7bc11e4b530e6d426a.zip
Add black, brown, cyan, grey, magenta, orange, teal and violet folder variants
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ecccd6c1f..1756446c8 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,20 @@ THEMES ?= $(patsubst %/index.theme,%,$(wildcard ./*/index.theme))
all:
+generate_folder_variants:
+ find color-folder -type d -name 'places-*' ! -name 'places-blue' \
+ | while read folder_variant; do \
+ color_variant=$$(echo $$folder_variant | sed -E 's/.*-([a-z])([a-z]+)$$/\U\1\L\2/g'); \
+ for variant in Dark Light; do \
+ new_theme="Flat-Remix-$${color_variant}-$${variant}"; \
+ rm -rf $$new_theme; \
+ cp -a "Flat-Remix-Blue-$${variant}" $$new_theme; \
+ rm -rf "$${new_theme}/places/scalable/"; \
+ cp -a $$folder_variant "$${new_theme}/places/scalable/"; \
+ sed -i "s/Name=.*/Name=$${new_theme}/" "$${new_theme}/index.theme"; \
+ done; \
+ done
+
install:
mkdir -p $(DESTDIR)$(PREFIX)/share/icons
cp -R $(THEMES) $(DESTDIR)$(PREFIX)/share/icons