mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-13 03:03:33 +02:00
Updates archive font script (WIP fixes #32)
* adds Windows variations * clean-up
This commit is contained in:
parent
605d8a0d9b
commit
b90f400e10
@ -2,12 +2,10 @@
|
||||
# version: 0.9.0
|
||||
# Iterates over all patched fonts directories
|
||||
# to generate ruby cask files for homebrew-fonts (https://github.com/caskroom/homebrew-fonts)
|
||||
# only adds non-Windows versions of the fonts
|
||||
# adds Windows versions of the fonts as well (casks files just won't download them)
|
||||
|
||||
#set -x
|
||||
|
||||
#patched_parent_dir="patched-fonts"
|
||||
|
||||
cd ../../patched-fonts/ || {
|
||||
echo >&2 "# Could not find patched fonts directory"
|
||||
exit 1
|
||||
@ -19,15 +17,12 @@ find . -maxdepth 1 -type d | # uncomment to test all fonts
|
||||
while read -r filename
|
||||
do
|
||||
|
||||
#dirname=$(dirname "$filename")
|
||||
basename=$(basename "$filename")
|
||||
searchdir=$filename
|
||||
#fontdir=$(basename "$(dirname "$dirname")")
|
||||
outputdir=$PWD/../archives/
|
||||
|
||||
[[ -d "$outputdir" ]] || mkdir -p "$outputdir"
|
||||
|
||||
zip "$outputdir/$basename" -rj "$searchdir" -i '*.[o,t]tf' -x '*Windows*'
|
||||
#zip "$outputdir/$basename" -r "$searchdir" -i '*.[o,t]tf' -x '*Windows*'
|
||||
zip "$outputdir/$basename" -rj "$searchdir" -i '*.[o,t]tf'
|
||||
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user