16 lines
355 B
Bash
Executable file
16 lines
355 B
Bash
Executable file
#!/bin/bash -euo pipefail
|
|
# requires woff2_compress (get from https://github.com/bramstein/homebrew-webfonttools)
|
|
|
|
cd "`dirname $0`/.."
|
|
source venv/bin/activate
|
|
|
|
rm -rf distr/*/*.woff2
|
|
|
|
ttfs=$(ls distr/*/*.ttf)
|
|
for ttf in $ttfs; do
|
|
woff2_compress $ttf
|
|
done
|
|
|
|
mkdir -p distr/woff2
|
|
mv distr/*/*.woff2 distr/woff2
|
|
rm distr/woff2/FiraCodeFixed-Retina.woff2 |