1
0
Fork 0
mirror of synced 2024-05-02 03:33:05 +12:00
FiraCode/script/build_woff2.sh

18 lines
411 B
Bash
Executable file

#!/bin/bash
set -o errexit -o nounset -o pipefail
cd "`dirname $0`/.."
[ -d venv ] && source venv/bin/activate
mkdir -p distr/woff2
rm -rf distr/woff2/*
# requires woff2_compress (get from https://github.com/bramstein/homebrew-webfonttools)
ttfs=$(ls distr/*/*.ttf)
for ttf in $ttfs; do
woff2_compress $ttf
done
mkdir -p distr/woff2
mv distr/*/*.woff2 distr/woff2
rm -f distr/woff2/FiraCode-Retina.woff2