aboutsummaryrefslogtreecommitdiffstats
path: root/mk/unportable.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-02-06 07:46:58 +0100
committerMattias Andrée <maandree@kth.se>2024-02-06 07:46:58 +0100
commit8c30c456806ff6d40684a7acf4084f387932db0e (patch)
treef534b0560067677c9813e3214f38bbb49523d449 /mk/unportable.mk
parentAdd some aliases and icons (diff)
downloadsimple-icon-theme-8c30c456806ff6d40684a7acf4084f387932db0e.tar.gz
simple-icon-theme-8c30c456806ff6d40684a7acf4084f387932db0e.tar.bz2
simple-icon-theme-8c30c456806ff6d40684a7acf4084f387932db0e.tar.xz
Big update11
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'mk/unportable.mk')
-rw-r--r--mk/unportable.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/mk/unportable.mk b/mk/unportable.mk
new file mode 100644
index 0000000..5d26d20
--- /dev/null
+++ b/mk/unportable.mk
@@ -0,0 +1,22 @@
+scalable-$(DIR_SUFFIX_)/%.svg: scalable/%.svg
+ @mkdir -p -- "$$(dirname -- "$@")"
+ set -e;\
+ F=$$(printf '%s\n' "$@" | cut -d / -f 2-);\
+ if ! test "$@" = "scalable/$$F"; then\
+ if test -L "scalable/$$F"; then\
+ ln -sf "$$(readlink -- "scalable/$$F")" "$@";\
+ else\
+ sed < "scalable/$$F" > "$@"\
+ -e 's/#[bB][eE][bB][eE][bB][eE]/#$(BASE_COLOUR)/g'\
+ -e 's/#[eE][fF]2929/#$(ALARM_RED)/g'\
+ -e 's/#[fF]57900/#$(ALARM_ORANGE)/g'\
+ -e 's/#[cC][dD]656[cC]/#$(RED)/g'\
+ -e 's/#[dD]69553/#$(ORANGE)/g'\
+ -e 's/#[cC][cC][aA][dD]47/#$(YELLOW)/g'\
+ -e 's/#32[aA]679/#$(GREEN)/g'\
+ -e 's/#00[aA]09[fF]/#$(CYAN)/g'\
+ -e 's/#2495[bB][eE]/#$(BLUE)/g'\
+ -e 's/#[aA]46[eE][bB]0/#$(MAGENTA)/g'\
+ -e 's/#000000/#$(OUTLINE)/g';\
+ fi;\
+ fi