From 843fa09a7e71bab824024a64bb40d49ab9a50a82 Mon Sep 17 00:00:00 2001 From: Kiliman Date: Thu, 25 Jul 2019 11:51:37 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20issue=20with=20Light=20wei?= =?UTF-8?q?ghts=20not=20building=20due=20to=20aggressive=20replace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #15 --- build.bat | 6 +++--- build.sh | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/build.bat b/build.bat index 0b8af9c..e3bed1f 100644 --- a/build.bat +++ b/build.bat @@ -11,12 +11,12 @@ if not "%1%"=="" ( rem build all fonts for /d %%d in (.\ligature\*) do call :build_font %%~nd -exit /b - +exit /b + :build_font set lig=%1 -set otf=%lig:Lig=% +set otf=%lig:Lig-=-% if not exist .\original\%otf%.otf exit /b if not exist .\ligature\%lig%\charstrings.xml exit /b diff --git a/build.sh b/build.sh index 6f6b42c..4d4cfe2 100755 --- a/build.sh +++ b/build.sh @@ -4,17 +4,17 @@ mkdir -p build build_font() { lig="$1" - otf=${lig/Lig/} + otf=${lig/Lig-/-} - if [ ! -e "./original/$otf.otf" ] - then - return + if [ ! -e "./original/$otf.otf" ] + then + return fi - if [ ! -e "./ligature/$lig/charstrings.xml" ] - then - return + if [ ! -e "./ligature/$lig/charstrings.xml" ] + then + return fi - + echo Building $1 ttx -f "./original/$otf.otf" node index.js $otf