mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-12-13 17:18:37 +02:00
20 lines
441 B
Bash
20 lines
441 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
skip=false
|
||
|
args=""
|
||
|
|
||
|
# Discard --out option
|
||
|
for i; do
|
||
|
[ "${i}" != "${i% *}" ] && i="\"$i\""
|
||
|
if [ "$i" = "--out" ] || [ "$i" = "-o" ]; then
|
||
|
skip=true
|
||
|
else
|
||
|
if [ "$skip" = false ] || [ "$i" == "-*" ]; then
|
||
|
args="$args $i"
|
||
|
fi
|
||
|
skip=false
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
for f in /in/*.otf /in/*.ttf /in/*.woff /in/*.eot; do [ -f $f ] && fontforge -script /nerd/font-patcher -out /out $args $f; done
|