From 1c8e98d4e62ee1c666a35b71309dc966703e0a49 Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Wed, 20 Sep 2017 23:06:52 -0400 Subject: [PATCH] clarified alternate build dependency install approaches in stderr to user upon dependency install fails --- build-subsets.sh | 10 +++++----- build-ttf.sh | 6 +++--- build-woff.sh | 2 +- build-woff2.sh | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build-subsets.sh b/build-subsets.sh index 2c2620e2c..13bffa7b1 100755 --- a/build-subsets.sh +++ b/build-subsets.sh @@ -102,14 +102,14 @@ echo " " # fontmake installed if ! which fontmake 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 fi # fontTools python library can be imported if ! python -c "import fontTools" 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 else echo "fontTools Python library identified" @@ -122,7 +122,7 @@ if ! [ -f "$TTFAH" ] then if ! which ttfautohint 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 else 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 if ! [ -f "$SFNTWOFF_BIN" ] 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 else echo "sfnt2woff-zopfli executable identified" @@ -144,7 +144,7 @@ fi # woff2 installed if ! [ -f "$WOFF2_BIN" ] 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 else echo "woff2_compress executable identified" diff --git a/build-ttf.sh b/build-ttf.sh index fd999b749..85da3a40b 100755 --- a/build-ttf.sh +++ b/build-ttf.sh @@ -49,13 +49,13 @@ echo " " # fontmake installed if ! which fontmake 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 fi # fontTools python library can be imported if ! python -c "import fontTools" 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 else echo "fontTools Python library identified" @@ -67,7 +67,7 @@ if ! [ -f "$TTFAH" ] then if ! which ttfautohint 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 else TTFAH="ttfautohint" # revise TTFAH variable to ttfautohint installed on the user's PATH for excecution of hints below diff --git a/build-woff.sh b/build-woff.sh index 4c8772a21..6c9775514 100755 --- a/build-woff.sh +++ b/build-woff.sh @@ -97,7 +97,7 @@ fi if [ -f "$SFNTWOFF_BIN" ]; then echo "Beginning web font build with $SFNTWOFF" 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 fi diff --git a/build-woff2.sh b/build-woff2.sh index ee2d58f3e..a4eed3e08 100755 --- a/build-woff2.sh +++ b/build-woff2.sh @@ -89,7 +89,7 @@ fi if [ -f "$WOFF2_BIN" ]; then echo "Beginning web font build with $WOFF2_BIN" 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 fi