FiraCode/script/build_woff

18 wiersze
397 B
Plaintext
Czysty Zwykły widok Historia

2020-06-08 14:10:00 +00:00
#!/bin/bash -euo pipefail
2020-04-09 16:56:19 +00:00
# requires sfnt2woff-zopfli (get from https://github.com/bramstein/homebrew-webfonttools)
2020-06-08 14:10:00 +00:00
cd "`dirname $0`/.."
2020-06-17 20:06:57 +00:00
[ -d venv ] && source venv/bin/activate
2020-06-08 14:10:00 +00:00
rm -rf distr/*/*.woff
2020-04-09 16:56:19 +00:00
ttfs=$(ls distr/*/*.ttf)
for ttf in $ttfs; do
2020-06-08 14:10:00 +00:00
echo "sfnt2woff-zopfli $ttf"
2020-04-09 16:56:19 +00:00
sfnt2woff-zopfli $ttf
done
mkdir -p distr/woff
2020-06-08 14:10:00 +00:00
mv distr/*/*.woff distr/woff
2020-06-17 20:06:57 +00:00
rm distr/woff/FiraCode-Retina.woff