Skip to content

Commit 5681045

Browse files
committed
[build-subsets.sh, build-ttf.sh] added SOURCE_DATE_EPOCH calcs from git commit date/time
to support reproducible builds
1 parent 06742df commit 5681045

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

build-subsets.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
#
1515
# //////////////////////////////////////////////////////////////////////
1616

17+
# set SOURCE_DATE_EPOCH to git commit date/time for reproducible builds
18+
SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)
19+
1720
# default build tooling definitions
1821
TTFAH="$HOME/ttfautohint-build/local/bin/ttfautohint"
1922
FONTMAKE="pipenv run fontmake"

build-ttf.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#
1414
# /////////////////////////////////////////////////////////////////
1515

16+
# set SOURCE_DATE_EPOCH to git commit date/time for reproducible builds
17+
SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)
18+
1619
# default build tooling definitions
1720
TTFAH="$HOME/ttfautohint-build/local/bin/ttfautohint"
1821
FONTMAKE="pipenv run fontmake"
@@ -137,6 +140,7 @@ if ! $FONTMAKE -u "source/Hack-BoldItalic.ufo" -o ttf
137140
exit 1
138141
fi
139142

143+
140144
# Desktop ttf font post build fixes
141145

142146
# DSIG table fix with adapted fontbakery Python script

0 commit comments

Comments
 (0)