2021-08-09 03:26:47 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
2020-06-08 17:10:00 +03:00
|
|
|
cd "`dirname $0`/.."
|
2020-06-17 23:06:57 +03:00
|
|
|
[ -d venv ] && source venv/bin/activate
|
2021-08-09 03:26:47 +03:00
|
|
|
mkdir -p distr/woff2
|
|
|
|
rm -rf distr/woff2/*
|
2020-06-08 17:10:00 +03:00
|
|
|
|
2021-08-09 03:26:47 +03:00
|
|
|
# requires woff2_compress (get from https://github.com/bramstein/homebrew-webfonttools)
|
2020-04-09 19:56:19 +03:00
|
|
|
|
|
|
|
ttfs=$(ls distr/*/*.ttf)
|
|
|
|
for ttf in $ttfs; do
|
|
|
|
woff2_compress $ttf
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p distr/woff2
|
2020-06-08 17:10:00 +03:00
|
|
|
mv distr/*/*.woff2 distr/woff2
|
2020-10-08 14:55:10 +03:00
|
|
|
rm -f distr/woff2/FiraCode-Retina.woff2
|