mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-12-07 17:06:25 +02:00
b90f400e10
* adds Windows variations * clean-up
29 lines
771 B
Bash
Executable File
29 lines
771 B
Bash
Executable File
#!/bin/bash
|
|
# version: 0.9.0
|
|
# Iterates over all patched fonts directories
|
|
# to generate ruby cask files for homebrew-fonts (https://github.com/caskroom/homebrew-fonts)
|
|
# adds Windows versions of the fonts as well (casks files just won't download them)
|
|
|
|
#set -x
|
|
|
|
cd ../../patched-fonts/ || {
|
|
echo >&2 "# Could not find patched fonts directory"
|
|
exit 1
|
|
}
|
|
|
|
#find ./Hack -maxdepth 0 -type d | # uncomment to test 1 font
|
|
#find ./ProFont -maxdepth 0 -type d | # uncomment to test 1 font
|
|
find . -maxdepth 1 -type d | # uncomment to test all fonts
|
|
while read -r filename
|
|
do
|
|
|
|
basename=$(basename "$filename")
|
|
searchdir=$filename
|
|
outputdir=$PWD/../archives/
|
|
|
|
[[ -d "$outputdir" ]] || mkdir -p "$outputdir"
|
|
|
|
zip "$outputdir/$basename" -rj "$searchdir" -i '*.[o,t]tf'
|
|
|
|
done
|