diff options
author | Mattias Andrée <maandree@kth.se> | 2024-02-06 07:46:58 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-02-06 07:46:58 +0100 |
commit | 8c30c456806ff6d40684a7acf4084f387932db0e (patch) | |
tree | f534b0560067677c9813e3214f38bbb49523d449 /mk/unportable.mk | |
parent | Add some aliases and icons (diff) | |
download | simple-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.mk | 22 |
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 |