1
0
Fork 0
mirror of synced 2024-05-17 11:03:33 +12:00
FiraCode/script/build_woff
Nikita Prokopov 947ced5555 Fira Code v3
2020-04-09 18:59:53 +02:00

15 lines
319 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
mkdir -p distr/woff
woffs=$(ls distr/*/*.woff)
for woff in $woffs; do
mv $woff distr/woff/$(basename $woff)
done