1
0
Fork 0
mirror of synced 2024-05-29 08:50:45 +12:00
FiraCode/script/build_woff
Nikita Prokopov d42e7276fa Fira Code v4
2020-05-18 04:10:03 +02:00

17 lines
354 B
Bash
Executable file

#!/bin/bash -e
# requires sfnt2woff-zopfli (get from https://github.com/bramstein/homebrew-webfonttools)
rm -rf distr/woff
ttfs=$(ls distr/*/*.ttf)
for ttf in $ttfs; do
sfnt2woff-zopfli $ttf
done
rm distr/ttf/FiraCode-Retina.woff
mkdir -p distr/woff
woffs=$(ls distr/*/*.woff)
for woff in $woffs; do
mv $woff distr/woff/$(basename $woff)
done