blog/regenerate-dots.sh
Matej Focko 117f865ee8
ci: automate deployment
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-11-27 00:20:16 +01:00

8 lines
No EOL
298 B
Bash

#!/bin/sh
FONT="Iosevka,'Iosevka Term','Cascadia Code','JetBrains Mono','Fira Code',monospace"
for pic in $(find ./static/files -name '*.dot' -print); do
SVG_NAME=".$(echo $pic | cut -d'.' -f2).svg"
dot $pic -Tsvg -Gfontname="$FONT" -Nfontname="$FONT" -Efontname="$FONT" > $SVG_NAME
done;