echo"Inappropriate arguments included in your command." 1>&2
echo"Inappropriate arguments included in your command." 1>&2
echo"Usage: ./build-subsets.sh" 1>&2
echo"Usage: ./build-subsets.sh (--system)" 1>&2
exit1
exit1
fi
fi
# ////////////////////////////////////////
# //////////////////////////////////////////////
#
#
#
#
# Confirm that dependencies are installed
# Re-define build dependencies to PATH
# installed versions if --system flag is used
#
#
#
#
# ////////////////////////////////////////
# //////////////////////////////////////////////
INSTALLFLAG=0
# ttfautohint installed
# - tests for install to local path from ttfautohint-build.sh script
# - if not found on this path, tests for install on system PATH - if found, revises TTFAH to the string "ttfautohint" for execution of instruction sets
if ! [ -f "$TTFAH"]
then
if ! which ttfautohint
then
echo"ttfautohint was not found. Please install all build dependencies with 'make build-with-dependencies', then attempt your build again." 1>&2
INSTALLFLAG=1
else
TTFAH="ttfautohint"# revise TTFAH variable to ttfautohint installed on the user's PATH for excecution of hints below
echo"ttfautohint executable identified"
fi
else
echo"ttfautohint executable identified"
fi
# sfntwoff-zopfli installed
if ! [ -f "$SFNTWOFF_BIN"]
then
echo"sfnt2woff-zopfli was not found on the path $SFNTWOFF_BIN. Please install all build dependencies with 'make build-with-dependencies', then attempt your build again." 1>&2
INSTALLFLAG=1
else
echo"sfnt2woff-zopfli executable identified"
fi
# woff2 installed
if["$1"="--system"];then
if ! [ -f "$WOFF2_BIN"]
TTFAH="ttfautohint"
then
FONTMAKE="fontmake"
echo"woff2_compress was not found on the path $WOFF2_BIN. Please install all build dependencies with 'make build-with-dependencies', then attempt your build again." 1>&2
PYTHON="python3"
INSTALLFLAG=1
SFNTWOFF_BIN="sfnt2woff-zopfli"
else
WOFF2_BIN="woff2_compress"
echo"woff2_compress executable identified"
fi
fi
# if any of the dependency installs failed, exit and do not attempt build, notify user