Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hack v4.000 #427

Open
wants to merge 196 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
8490024
add support for pipenv Python dependency version pinning
chrissimpkins Mar 7, 2018
384f3fa
copies build-ttf.sh as build-ttf-system.sh to use as basis for script…
chrissimpkins Mar 7, 2018
fe6e6ba
[build-pipenv.sh] added new shell script that supports builds of venv…
chrissimpkins Mar 8, 2018
e3c0e97
updated script documentation
chrissimpkins Mar 8, 2018
1700e78
[build-pipenv.sh] modified if blocks in shell script
chrissimpkins Mar 8, 2018
74d359e
[build-pipenv.sh] add Python interpreter version to environment report
chrissimpkins Mar 8, 2018
0eb8a96
[build-ttf.sh] transitioned Python build tool calls to use of pipenv …
chrissimpkins Mar 8, 2018
176a14a
[build-subsets.sh] eliminated build dependency checks, these are now …
chrissimpkins Mar 8, 2018
bda185c
[build-subsets.sh] transitioned to use of pipenv virtualenv installs …
chrissimpkins Mar 8, 2018
da20882
[Makefile] added pipenv venv setup script to the build process
chrissimpkins Mar 8, 2018
cce5e12
[U+007D, regular, '}'] adjust height to match braceleft
chrissimpkins Mar 10, 2018
673809f
[U+007B, regular, '{'] adjust height to match braceright
chrissimpkins Mar 10, 2018
dd1e35a
[fontinfo.plist] version bump to v4.000 work
chrissimpkins Mar 10, 2018
55e3f27
[CHANGELOG.md] updated changelog
chrissimpkins Mar 10, 2018
7de5d65
added Python interpreter version definition to virtualenv scripting
chrissimpkins Mar 15, 2018
10c5444
modified build variable name
chrissimpkins Mar 15, 2018
aff9f86
removed unnecessary build shell script
chrissimpkins Mar 15, 2018
4d8a9a1
added new sfnt2woff-zopfli local install script
chrissimpkins Mar 15, 2018
953c35b
[build-ttf.sh] updated script to support pinned and system installed …
chrissimpkins Mar 15, 2018
14b1912
[Makefile] updated make targets
chrissimpkins Mar 15, 2018
dd71f61
[build-woff.sh] added support for pinned version and system installed…
chrissimpkins Mar 15, 2018
353455d
[build-ttf.sh] fixes incorrect executable path checks with system ins…
chrissimpkins Mar 15, 2018
0da551b
[build-woff.sh] refactored default build approach path test for depen…
chrissimpkins Mar 15, 2018
c0f9b0c
added new woff2-compress-build shell script for local builds of woff2…
chrissimpkins Mar 15, 2018
f1c3c53
[Makefile] updated make target shell script path for local woff2_comp…
chrissimpkins Mar 15, 2018
8b05246
[build-woff2.sh] added support for pinned dependency builds and rolli…
chrissimpkins Mar 15, 2018
63c6f05
[build-woff2.sh] removed unnecessary variable
chrissimpkins Mar 15, 2018
83eac63
[Makefile] updated shellcheck target deps
chrissimpkins Mar 15, 2018
2b1d273
[build-subsets.sh] updated shell script to support pinned build depen…
chrissimpkins Mar 15, 2018
843e689
new build-archives.sh shell script
chrissimpkins Mar 15, 2018
1028b7e
[Makefile] updated archives make target with new shell script path
chrissimpkins Mar 15, 2018
842a21f
[Makefile] added subsets-system make target
chrissimpkins Mar 16, 2018
4c48555
[Makefile] added subsets-system target to .PHONY
chrissimpkins Mar 16, 2018
e20d786
[fix-dsig.py] removed from __future__ imports, code formatting = pass…
chrissimpkins Mar 16, 2018
0a01f04
[fix-fstype.py] source code formatting changes = passes flake8 tests
chrissimpkins Mar 16, 2018
96a35cb
[woff2-compress-build.sh] convert to upstream woff2 at v1.0.2 (includ…
chrissimpkins Mar 16, 2018
ee180fb
[build-pipenv.sh] modified command to create the pipenv virtual envir…
chrissimpkins Mar 16, 2018
8b7feda
[Makefile] added documentation and process specific target arrangement
chrissimpkins Mar 17, 2018
d6df277
[BUILD.md] updated build documentation with v4.x build tooling changes
chrissimpkins Mar 18, 2018
1dd3664
[BUILD.md] added TOC
chrissimpkins Mar 18, 2018
b1ebe12
[BUILD.md] minor text revisions
chrissimpkins Mar 18, 2018
bc6a683
[BUILD.md] added documentation for system PATH installed build depend…
chrissimpkins Mar 18, 2018
2a46cad
[woff2-compress-build.sh] modified woff2_compress to use brotli v1.0.3
chrissimpkins Mar 21, 2018
5da0190
Merge branch 'build-scripting' into dev
chrissimpkins Apr 9, 2018
a8eecfc
[U+0041, regular, 'A'] simplified and improved contour
chrissimpkins Apr 9, 2018
5ad33c8
[U+0042, regular, 'B'] simplified and improved contour
chrissimpkins Apr 9, 2018
f6e3ab3
[U+0043, regular, 'C'] simplified and improved contour
chrissimpkins Apr 9, 2018
01e8d83
[U+0044, regular, 'D'] simplified and improved contour
chrissimpkins Apr 9, 2018
0438363
[U+0045, regular, 'E'] simplified and improved contour
chrissimpkins Apr 9, 2018
523394d
[U+0046, regular, 'F'] simplified and improved contour
chrissimpkins Apr 9, 2018
992827d
[U+0047, regular, 'G'] simplified and improved contour
chrissimpkins Apr 9, 2018
f3eca20
[U+0048, regular, 'H'] simplified and improved contour
chrissimpkins Apr 9, 2018
199c186
[U+0049, regular, 'I'] simplified and improved contour
chrissimpkins Apr 9, 2018
62fcad0
[U+004A, regular, 'J'] simplified and improved contour
chrissimpkins Apr 9, 2018
13ec429
[U+004B, regular, 'K'] simplified and improved contour
chrissimpkins Apr 9, 2018
b0f9959
[U+004C, regular, 'L'] simplified and improved contour
chrissimpkins Apr 9, 2018
f5e8e0e
[U+004D, regular, 'M'] simplified and improved contour
chrissimpkins Apr 9, 2018
1ae526d
[U+004E, regular, 'N'] simplified and improved contour
chrissimpkins Apr 9, 2018
3ee867e
[U+004F, regular, 'O'] simplified and improved contour
chrissimpkins Apr 9, 2018
28c5786
[U+0050, regular, 'P'] simplified and improved contour
chrissimpkins Apr 9, 2018
f1f2077
[U+0051, regular, 'Q'] simplified and improved contour
chrissimpkins Apr 9, 2018
b3d15ec
[U+0052, regular, 'R'] simplified and improved contour
chrissimpkins Apr 9, 2018
7fc43d0
[U+0053, regular, 'S'] simplified and improved contour
chrissimpkins Apr 9, 2018
aed17a8
[U+0054, regular, 'T'] simplified and improved contour
chrissimpkins Apr 9, 2018
d4f2c1a
[U+0055, regular, 'U'] simplified and improved contour
chrissimpkins Apr 9, 2018
fc7ca33
[U+0056, regular, 'V'] simplified and improved contour
chrissimpkins Apr 9, 2018
03c3a06
[U+0057, regular, 'W'] simplified and improved contour
chrissimpkins Apr 9, 2018
e5bd099
[U+0058, regular, 'X'] simplified and improved contour
chrissimpkins Apr 9, 2018
6356edc
[U+0059, regular, 'Y'] simplified and improved contour
chrissimpkins Apr 9, 2018
22a4bed
[U+005A, regular, 'Z'] simplified and improved contour
chrissimpkins Apr 9, 2018
9c64954
[U+0041, italic, 'A'] simplified and improved contour
chrissimpkins Apr 9, 2018
69adb66
[U+0042, italic, 'B'] simplified and improved contour
chrissimpkins Apr 9, 2018
ff1871a
[U+0043, italic, 'C'] simplified and improved contour
chrissimpkins Apr 9, 2018
fc44cf5
[U+0044, italic, 'D'] simplified and improved contour
chrissimpkins Apr 9, 2018
47b1e20
[U+0045, italic, 'E'] simplified and improved contour
chrissimpkins Apr 9, 2018
13d6bef
[U+0046, italic, 'F'] simplified and improved contour
chrissimpkins Apr 9, 2018
d96e645
[U+0047, italic, 'G'] simplified and improved contour
chrissimpkins Apr 9, 2018
1823846
[U+0048, italic, 'H'] simplified and improved contour
chrissimpkins Apr 9, 2018
5321d5e
[U+0049, italic, 'I'] simplified and improved contour
chrissimpkins Apr 9, 2018
f46a0e5
[U+004A, italic, 'J'] simplified and improved contour
chrissimpkins Apr 9, 2018
3d18632
[U+004B, italic, 'K'] simplified and improved contour
chrissimpkins Apr 9, 2018
092a290
[U+004C, italic, 'L'] simplified and improved contour
chrissimpkins Apr 9, 2018
75f8a78
[U+004D, italic, 'M'] simplified and improved contour
chrissimpkins Apr 9, 2018
c0ead1c
[U+004E, italic, 'N'] simplified and improved contour
chrissimpkins Apr 9, 2018
68530e7
[U+004F, italic, 'O'] simplified and improved contour
chrissimpkins Apr 9, 2018
fb1ddd7
[U+0050, italic, 'P'] simplified and improved contour
chrissimpkins Apr 9, 2018
f984a65
[U+0051, italic, 'Q'] simplified and improved contour
chrissimpkins Apr 9, 2018
40537cb
[U+0052, italic, 'R'] simplified and improved contour
chrissimpkins Apr 9, 2018
b24891f
[U+0053, italic, 'S'] simplified and improved contour
chrissimpkins Apr 9, 2018
f524366
[U+0054, italic, 'T'] simplified and improved contour
chrissimpkins Apr 9, 2018
1036531
[U+0055, italic, 'U'] simplified and improved contour
chrissimpkins Apr 9, 2018
f8eeea9
[U+0056, italic, 'V'] simplified and improved contour
chrissimpkins Apr 9, 2018
95272d6
[U+0057, italic, 'W'] simplified and improved contour
chrissimpkins Apr 9, 2018
e81b7c4
[U+0058, italic, 'X'] simplified and improved contour
chrissimpkins Apr 9, 2018
38786db
[U+0059, italic, 'Y'] simplified and improved contour
chrissimpkins Apr 9, 2018
0a855ab
[U+005A, italic, 'Z'] simplified and improved contour
chrissimpkins Apr 9, 2018
ffb8c76
[U+0041, bold, 'A'] simplified and improved contour
chrissimpkins Apr 9, 2018
366abe0
[U+0042, bold, 'B'] simplified and improved contour
chrissimpkins Apr 9, 2018
0e8e031
[U+0043, bold, 'C'] simplified and improved contour
chrissimpkins Apr 9, 2018
df51150
[U+0044, bold, 'D'] simplified and improved contour
chrissimpkins Apr 9, 2018
4b9f650
[U+0045, bold, 'E'] simplified and improved contour
chrissimpkins Apr 9, 2018
5187430
[U+0046, bold, 'F'] simplified and improved contour
chrissimpkins Apr 9, 2018
c222dc7
[U+0047, bold, 'G'] simplified and improved contour
chrissimpkins Apr 9, 2018
6b53421
[U+0048, bold, 'H'] simplified and improved contour
chrissimpkins Apr 9, 2018
5cab4f3
[U+0049, bold, 'I'] simplified and improved contour
chrissimpkins Apr 9, 2018
c0a6dbc
[U+004A, bold, 'J'] simplified and improved contour
chrissimpkins Apr 9, 2018
3794dfc
[U+004B, bold, 'K'] simplified and improved contour
chrissimpkins Apr 9, 2018
753b141
[U+004C, bold, 'L'] simplified and improved contour
chrissimpkins Apr 9, 2018
d652ff5
[U+004D, bold, 'M'] simplified and improved contour
chrissimpkins Apr 9, 2018
534911a
[U+004E, bold, 'N'] simplified and improved contour
chrissimpkins Apr 9, 2018
e68228c
[U+004F, bold, 'O'] simplified and improved contour
chrissimpkins Apr 9, 2018
a2423fc
[U+0050, bold, 'P'] simplified and improved contour
chrissimpkins Apr 9, 2018
0c155b7
[U+0051, bold, 'Q'] simplified and improved contour
chrissimpkins Apr 9, 2018
28b4d8a
[U+0052, bold, 'R'] simplified and improved contour
chrissimpkins Apr 9, 2018
8e1dc37
[U+0053, bold, 'S'] simplified and improved contour
chrissimpkins Apr 9, 2018
bfc89a8
[U+0054, bold, 'T'] simplified and improved contour
chrissimpkins Apr 9, 2018
01e145a
[U+0055, bold, 'U'] simplified and improved contour
chrissimpkins Apr 9, 2018
99d8eed
[U+0056, bold, 'V'] simplified and improved contour
chrissimpkins Apr 9, 2018
c47ce34
[U+0057, bold, 'W'] simplified and improved contour
chrissimpkins Apr 9, 2018
a4a9a4a
[U+0058, bold, 'X'] simplified and improved contour
chrissimpkins Apr 9, 2018
0e4b978
[U+0059, bold, 'Y'] simplified and improved contour
chrissimpkins Apr 9, 2018
c079111
[U+005A, bold, 'Z'] simplified and improved contour
chrissimpkins Apr 9, 2018
6239c1f
[U+0041, bolditalic, 'A'] simplified and improved contour
chrissimpkins Apr 10, 2018
485e30b
[U+0042, bolditalic, 'b'] simplified and improved contour
chrissimpkins Apr 10, 2018
3592688
[U+0043, bolditalic, 'C'] simplified and improved contour
chrissimpkins Apr 10, 2018
de4a24d
[U+0044, bolditalic, 'D'] simplified and improved contour
chrissimpkins Apr 10, 2018
7620c78
[U+0045, bolditalic, 'E'] simplified and improved contour
chrissimpkins Apr 10, 2018
9f5c36a
[U+0046, bolditalic, 'F'] simplified and improved contour
chrissimpkins Apr 10, 2018
9fcd973
[U+0047, bolditalic, 'G'] simplified and improved contour
chrissimpkins Apr 10, 2018
7938bfb
[U+0048, bolditalic, 'H'] simplified and improved contour
chrissimpkins Apr 10, 2018
c7730a6
[U+0049, bolditalic, 'I'] simplified and improved contour
chrissimpkins Apr 10, 2018
ba839ae
[U+004A, bolditalic, 'J'] simplified and improved contour
chrissimpkins Apr 10, 2018
f692eda
[U+004B, bolditalic, 'K'] simplified and improved contour
chrissimpkins Apr 10, 2018
970f018
[U+004C, bolditalic, 'L'] simplified and improved contour
chrissimpkins Apr 10, 2018
9ba9620
[U+004D, bolditalic, 'M'] simplified and improved contour
chrissimpkins Apr 10, 2018
d810a78
[U+004E, bolditalic, 'N'] simplified and improved contour
chrissimpkins Apr 10, 2018
5c23c1e
[U+004F, bolditalic, 'O'] simplified and improved contour
chrissimpkins Apr 10, 2018
2ec6efe
[U+0050, bolditalic, 'P'] simplified and improved contour
chrissimpkins Apr 10, 2018
8766550
[U+0051, bolditalic, 'Q'] simplified and improved contour
chrissimpkins Apr 10, 2018
719c67e
[U+0052, bolditalic, 'R'] simplified and improved contour
chrissimpkins Apr 10, 2018
97157f1
[U+0053, bolditalic, 'S'] simplified and improved contour
chrissimpkins Apr 10, 2018
a6a73e2
[U+0054, bolditalic, 'T'] simplified and improved contour
chrissimpkins Apr 10, 2018
72d4f87
[U+0055, bolditalic, 'U'] simplified and improved contour
chrissimpkins Apr 10, 2018
ed5b472
[U+0056, bolditalic, 'V'] simplified and improved contour
chrissimpkins Apr 10, 2018
3b6e201
[U+0057, bolditalic, 'W'] simplified and improved contour
chrissimpkins Apr 10, 2018
0f4e933
[U+0058, bolditalic, 'X'] simplified and improved contour
chrissimpkins Apr 10, 2018
03f0b3c
[U+0059, bolditalic, 'Y'] simplified and improved contour
chrissimpkins Apr 10, 2018
eddbfa8
[U+005A, bolditalic, 'Z'] simplified and improved contour
chrissimpkins Apr 10, 2018
50ed93d
Add glyph U+20BD
pkolchanov May 13, 2018
2fd72e6
[U+0028, U+0029] Made parentheses rounder
jdw1996 May 28, 2018
82186e9
[U+003C, U+003E] Wider less-than and greater-than
jdw1996 May 28, 2018
e2d8e94
Merge branch 'wider-lt-gt' of https://github.com/jdw1996/Hack into pa…
chrissimpkins May 30, 2018
ef63a40
Reduced tapering at ends of left parentheses
jdw1996 Jun 1, 2018
60d7e3c
[U+0442, regular, 'т'] extended hozitontal stroke
pkolchanov May 30, 2018
8ac8818
[U+0442, bold, 'т'] extended hozitontal stroke
pkolchanov May 30, 2018
24d786f
[U+0442, italic, 'т'] extended hozitontal stroke
pkolchanov Jun 1, 2018
5abff8a
[U+0442, bolditalic, 'т'] extended hozitontal stroke
pkolchanov Jun 1, 2018
4821712
Merge branch 'ruble' of https://github.com/Ledokol/Hack into cyrillic…
chrissimpkins Jun 4, 2018
400b701
add metadata for new ruble glyphs [U+20BD]
chrissimpkins Jun 4, 2018
d040a58
modified ruble definition for subsets
chrissimpkins Jun 4, 2018
47e1598
:Merge branch 'rounder-parens' of https://github.com/jdw1996/Hack int…
chrissimpkins Jun 4, 2018
394b8b0
[U+0028, U+0029, '(', ')'] vertical and horizontal spacing adjustments
chrissimpkins Jun 5, 2018
0fd8cf6
Merge branch 'parens-lt-gt-designs' into braces-brackets
chrissimpkins Jun 5, 2018
daa25ec
[U+007B, U+007D, regular, braceleft, braceright] adjust vertical posi…
chrissimpkins Jun 5, 2018
7f6cbb8
[U+005B, U+005D, regular, bracketleft, bracketright] adjust vertical …
chrissimpkins Jun 5, 2018
477de3c
[U+007B, U+007D, italic, braceleft, braceright] adjust vertical position
chrissimpkins Jun 5, 2018
e07b2c0
[U+005B, U+005D, italic, bracketleft, bracketright] adjust vertical p…
chrissimpkins Jun 5, 2018
9d9282e
[U+007B, U+007D, bold, braceleft, braceright] adjust vertical position
chrissimpkins Jun 5, 2018
f760643
[U+005B, U+005D, bold, bracketleft, bracketright] adjust vertical pos…
chrissimpkins Jun 5, 2018
c8dcc80
[U+007B, U+007D, bold-italic, braceleft, braceright] adjust vertical …
chrissimpkins Jun 5, 2018
989cd5e
[U+005B, U+005D, bold-italic, bracketleft, bracketright] adjust verti…
chrissimpkins Jun 5, 2018
f34aae6
[U+002D, all sets, '-'] raise vertical position
chrissimpkins Jun 8, 2018
06742df
[ttdiff.sh] chmod +x shell script
chrissimpkins Jun 13, 2018
5681045
[build-subsets.sh, build-ttf.sh] added SOURCE_DATE_EPOCH calcs from g…
chrissimpkins Jun 13, 2018
43b5ba0
[fix-dsig.py, fix-fstype.py] eliminated timestamp recalculation durin…
chrissimpkins Jun 13, 2018
558800c
[build-ttf.sh, build-subsets.sh] export environment variable for repr…
chrissimpkins Jun 13, 2018
752fbdb
[pipenv] bump venv fontmake version to 1.5
chrissimpkins Jun 13, 2018
c1c7c62
[UFO2 --> UFO3] upconvert UFO v2 source files to UFO v3 source files
chrissimpkins Jun 14, 2018
379a409
[U+007B, U+007D, bold, braceleft, braceright] adjusted vertical position
chrissimpkins Jul 18, 2018
c87cd08
[U+005B, U+005D, bold, bracketleft, bracketright] adjusted vertical p…
chrissimpkins Jul 18, 2018
88a2e88
[U+007B, U+007D, bold-italic, braceleft, braceright] adjusted vertica…
chrissimpkins Jul 18, 2018
5350213
[U+005B, U+005D, bold-italic, bracketleft, bracketright] adjust verti…
chrissimpkins Jul 18, 2018
c1f45d1
update to UFO v3 formatting .glif files
chrissimpkins Jul 18, 2018
3a38ff0
Add parenleft and parenright with smoother curves
vl4dimir Sep 4, 2018
eeb942b
Bump parenleft/parenright glyph versions from 1 to 2
vl4dimir Sep 20, 2018
30bb4a0
Merge pull request #452 from BRUTALISM/parens-curves
chrissimpkins Oct 20, 2018
762a10c
[build-subsets.sh] fix shellcheck SC2155 error
chrissimpkins Oct 20, 2018
3a85a76
[build-ttf.sh] fix shellcheck SC2155 error
chrissimpkins Oct 20, 2018
70f4860
[Pipfile] update to py 3.7 interpreter builds
chrissimpkins Oct 21, 2018
e97ee8a
[Pipfile.lock] update Python build dependencies
chrissimpkins Oct 21, 2018
ac48920
[Control Instructions Files TTFA] change glyph name format
chrissimpkins Oct 21, 2018
8d089b6
[.gitignore] add .DS_Store
chrissimpkins Feb 12, 2019
db2d3fe
Merge branch 'py37-build-upgrade' into dev
chrissimpkins Mar 25, 2019
4984a9d
Update macOS Homebrew information for issue-476
Mar 11, 2020
e2f8afd
Merge branch 'issue-476' into dev
Mar 11, 2020
b4331b3
Merge pull request #511 from darrenpmeyer/dev
chrissimpkins Jun 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[build-woff.sh] added support for pinned version and system installed…
… build dep compiles
  • Loading branch information
chrissimpkins committed Mar 15, 2018
commit dd71f61df87660f8f4a2a0ac5cbfaf2295ee9f8b
82 changes: 25 additions & 57 deletions build-woff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
# Copyright 2018 Christopher Simpkins
# MIT License
#
# Usage: ./build-woff.sh (--install-dependencies)
# Usage: ./build-woff.sh (--system)
# Arguments:
# --install-dependencies (optional) - installs all
# build dependencies prior to the build script execution
# --system (optional) - build with a system installed version
# of build dependencies
#
# NOTE: If you change the source, you must build new ttf files
# with build.sh PRIOR to execution of this script.
# This script builds directly from previous ttf builds,
# not source files.
# NOTE: If you modify the source, you must build new ttf files
# PRIOR to execution of this script. This script builds
# directly from previous ttf builds, not source files.
#
# ///////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -50,55 +49,29 @@ BOLDITALIC_WOFF="hack-bolditalic.woff"
if [ $# -gt 1 ]
then
echo "Inappropriate arguments included in your command." 1>&2
echo "Usage: ./build-woff.sh (--install-dependencies)" 1>&2
echo "Usage: ./build-woff.sh (--system)" 1>&2
exit 1
fi

# Optional build dependency install request with syntax `./build-web.sh --install-dependencies`
if [ "$1" = "--install-dependencies" ]
then
# define the current directory (Hack repository)
CUR_DIR=$(pwd)

if test -d "$BUILD" -o -f "$BUILD"; then
echo "Build directory \`$BUILD' must not exist."
exit 1
fi

mkdir "$BUILD"

cd "$BUILD" || exit 1

echo "#####"
echo "Download archive."
echo "#####"

curl -L -O "https://github.com/bramstein/sfnt2woff-zopfli/archive/v$SFNTWOFF_VERSION.tar.gz"

echo "#####"
echo "Extract archives."
echo "#####"

tar -xzvf "v$SFNTWOFF_VERSION.tar.gz"

cd "$SFNTWOFF" || exit 1

echo "#####"
echo "Build $SFNTWOFF."
echo "#####"

make

# make Hack repository the current directory again following the build
cd "$CUR_DIR" || exit 1
fi


if [ -f "$SFNTWOFF_BIN" ]; then
echo "Beginning web font build with $SFNTWOFF"
# determine if system installed executable on PATH is requested for build
# then test for presence of the sfnt2woff-zopfli build dependency based upon where it should be located
if [ "$1" = "--system" ]; then
SFNTWOFF_BIN="sfnt2woff-zopfli"
if ! which $SFNTWOFF_BIN; then
echo "Unable to identify sfnt2woff-zopfli executable on system PATH. Please install and try again." 1>&2
exit 1
else
# display version of installed sfnt2woff-zopfli
echo "Beginning web font build with $SFNTWOFF_BIN"
fi
else
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
if [ -f "$SFNTWOFF_BIN" ]; then
echo "Beginning web font build with $SFNTWOFF_BIN"
else
echo "Unable to locate sfnt2woff-zopfli on the path $SFNTWOFF_BIN. Please install this build dependency and then repeat your build attempt." 1>&2
exit 1
fi

fi

# Build woff files from ttf files
Expand Down Expand Up @@ -165,8 +138,3 @@ fi
if [ -f "$WOFF_BUILD/$BOLDITALIC_WOFF" ]; then
echo "Bold Italic woff build path: $WOFF_BUILD/$BOLDITALIC_WOFF"
fi