Browse Source

clarified alternate build dependency install approaches in stderr to user upon dependency install fails

Chris Simpkins 7 years ago
parent
commit
1c8e98d4e6
4 changed files with 10 additions and 10 deletions
  1. 5 5
      build-subsets.sh
  2. 3 3
      build-ttf.sh
  3. 1 1
      build-woff.sh
  4. 1 1
      build-woff2.sh

+ 5 - 5
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"

+ 3 - 3
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

+ 1 - 1
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
 

+ 1 - 1
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