mirror of
https://github.com/source-foundry/Hack.git
synced 2024-09-17 16:17:16 +03:00
clarified alternate build dependency install approaches in stderr to user upon dependency install fails
This commit is contained in:
parent
422a608399
commit
1c8e98d4e6
@ -102,14 +102,14 @@ echo " "
|
|||||||
# fontmake installed
|
# fontmake installed
|
||||||
if ! which fontmake
|
if ! which fontmake
|
||||||
then
|
then
|
||||||
echo "fontmake was not found. Please attempt to install this with ./build-ttf.sh --install-dependencies, then execute this script again" 1>&2
|
echo "fontmake was not found. Please install all build dependencies with 'make build-with-dependencies', then attempt your build again." 1>&2
|
||||||
INSTALLFLAG=1
|
INSTALLFLAG=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fontTools python library can be imported
|
# fontTools python library can be imported
|
||||||
if ! python -c "import fontTools"
|
if ! python -c "import fontTools"
|
||||||
then
|
then
|
||||||
echo "The fontTools library was not found. Please attempt to install this with ./build-ttf.sh --install-dependencies, then execute this script again" 1>&2
|
echo "The fontTools library was not found. Please install all build dependencies with 'make build-with-dependencies', then attempt your build again." 1>&2
|
||||||
INSTALLFLAG=1
|
INSTALLFLAG=1
|
||||||
else
|
else
|
||||||
echo "fontTools Python library identified"
|
echo "fontTools Python library identified"
|
||||||
@ -122,7 +122,7 @@ if ! [ -f "$TTFAH" ]
|
|||||||
then
|
then
|
||||||
if ! which ttfautohint
|
if ! which ttfautohint
|
||||||
then
|
then
|
||||||
echo "ttfautohint was not found. Please attempt to install this with ./build-ttf.sh --install-dependencies, then execute this script again." 1>&2
|
echo "ttfautohint was not found. Please install all build dependencies with 'make build-with-dependencies', then attempt your build again." 1>&2
|
||||||
INSTALLFLAG=1
|
INSTALLFLAG=1
|
||||||
else
|
else
|
||||||
TTFAH="ttfautohint" # revise TTFAH variable to ttfautohint installed on the user's PATH for excecution of hints below
|
TTFAH="ttfautohint" # revise TTFAH variable to ttfautohint installed on the user's PATH for excecution of hints below
|
||||||
@ -135,7 +135,7 @@ fi
|
|||||||
# sfntwoff-zopfli installed
|
# sfntwoff-zopfli installed
|
||||||
if ! [ -f "$SFNTWOFF_BIN" ]
|
if ! [ -f "$SFNTWOFF_BIN" ]
|
||||||
then
|
then
|
||||||
echo "sfnt2woff-zopfli was not found. Please attempt to install this with ./build-woff.sh --install-dependencies, then execute this script again" 1>&2
|
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
|
INSTALLFLAG=1
|
||||||
else
|
else
|
||||||
echo "sfnt2woff-zopfli executable identified"
|
echo "sfnt2woff-zopfli executable identified"
|
||||||
@ -144,7 +144,7 @@ fi
|
|||||||
# woff2 installed
|
# woff2 installed
|
||||||
if ! [ -f "$WOFF2_BIN" ]
|
if ! [ -f "$WOFF2_BIN" ]
|
||||||
then
|
then
|
||||||
echo "woff2 was not found. Please attempt to install this with ./build-woff2.sh --install-dependencies, then execute this script again" 1>&2
|
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
|
||||||
INSTALLFLAG=1
|
INSTALLFLAG=1
|
||||||
else
|
else
|
||||||
echo "woff2_compress executable identified"
|
echo "woff2_compress executable identified"
|
||||||
|
@ -49,13 +49,13 @@ echo " "
|
|||||||
# fontmake installed
|
# fontmake installed
|
||||||
if ! which fontmake
|
if ! which fontmake
|
||||||
then
|
then
|
||||||
echo "Unable to install fontmake with 'pip install fontmake'. Please attempt manual install and repeat build without the --install-dependencies flag." 1>&2
|
echo "Unable to install fontmake with 'pip install fontmake'. Please attempt a manual install of this build dependency and then repeat your build attempt." 1>&2
|
||||||
INSTALLFLAG=1
|
INSTALLFLAG=1
|
||||||
fi
|
fi
|
||||||
# fontTools python library can be imported
|
# fontTools python library can be imported
|
||||||
if ! python -c "import fontTools"
|
if ! python -c "import fontTools"
|
||||||
then
|
then
|
||||||
echo "Unable to install fontTools with 'pip install fonttools'. Please attempt manual install and repeat build without the --install-dependencies flag." 1>&2
|
echo "Unable to install fontTools with 'pip install fonttools'. Please attempt a manual install of this build dependency and then repeat your build attempt." 1>&2
|
||||||
INSTALLFLAG=1
|
INSTALLFLAG=1
|
||||||
else
|
else
|
||||||
echo "fontTools Python library identified"
|
echo "fontTools Python library identified"
|
||||||
@ -67,7 +67,7 @@ if ! [ -f "$TTFAH" ]
|
|||||||
then
|
then
|
||||||
if ! which ttfautohint
|
if ! which ttfautohint
|
||||||
then
|
then
|
||||||
echo "Unable to install ttfautohint from source. Please attempt manual install and repeat build without the --install-dependencies flag." 1>&2
|
echo "Unable to install ttfautohint from source. Please attempt a manual install of this build dependency and then repeat your build attempt." 1>&2
|
||||||
INSTALLFLAG=1
|
INSTALLFLAG=1
|
||||||
else
|
else
|
||||||
TTFAH="ttfautohint" # revise TTFAH variable to ttfautohint installed on the user's PATH for excecution of hints below
|
TTFAH="ttfautohint" # revise TTFAH variable to ttfautohint installed on the user's PATH for excecution of hints below
|
||||||
|
@ -97,7 +97,7 @@ fi
|
|||||||
if [ -f "$SFNTWOFF_BIN" ]; then
|
if [ -f "$SFNTWOFF_BIN" ]; then
|
||||||
echo "Beginning web font build with $SFNTWOFF"
|
echo "Beginning web font build with $SFNTWOFF"
|
||||||
else
|
else
|
||||||
echo "Unable to locate sfnt2woff-zopfli." 1>&2
|
echo "Unable to locate sfnt2woff-zopfli on the path $SFNTWOFF_BIN. Please attempt a manual install of this build dependency and then repeat your build attempt." 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ fi
|
|||||||
if [ -f "$WOFF2_BIN" ]; then
|
if [ -f "$WOFF2_BIN" ]; then
|
||||||
echo "Beginning web font build with $WOFF2_BIN"
|
echo "Beginning web font build with $WOFF2_BIN"
|
||||||
else
|
else
|
||||||
echo "Unable to locate woff2_compress on path $WOFF2_BIN" 1>&2
|
echo "Unable to locate woff2_compress on path $WOFF2_BIN. Please attempt a manual install of this build dependency and then repeat your build attempt." 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user