From b90f400e10ff7bd605306420ba9fbcf43bb495a1 Mon Sep 17 00:00:00 2001 From: Ryan L McIntyre Date: Fri, 2 Dec 2016 23:03:07 -0500 Subject: [PATCH] Updates archive font script (WIP fixes #32) * adds Windows variations * clean-up --- bin/scripts/archive-fonts.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/scripts/archive-fonts.sh b/bin/scripts/archive-fonts.sh index beaef95ce..64413d6e4 100755 --- a/bin/scripts/archive-fonts.sh +++ b/bin/scripts/archive-fonts.sh @@ -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