Browse Source

[build-subsets.sh, build-ttf.sh] added SOURCE_DATE_EPOCH calcs from git commit date/time

to support reproducible builds
Chris Simpkins 7 years ago
parent
commit
5681045fa2
2 changed files with 7 additions and 0 deletions
  1. 3 0
      build-subsets.sh
  2. 4 0
      build-ttf.sh

+ 3 - 0
build-subsets.sh

@@ -14,6 +14,9 @@
 #
 #
 # //////////////////////////////////////////////////////////////////////
 # //////////////////////////////////////////////////////////////////////
 
 
+# set SOURCE_DATE_EPOCH to git commit date/time for reproducible builds
+SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)
+
 # default build tooling definitions
 # default build tooling definitions
 TTFAH="$HOME/ttfautohint-build/local/bin/ttfautohint"
 TTFAH="$HOME/ttfautohint-build/local/bin/ttfautohint"
 FONTMAKE="pipenv run fontmake"
 FONTMAKE="pipenv run fontmake"

+ 4 - 0
build-ttf.sh

@@ -13,6 +13,9 @@
 #
 #
 # /////////////////////////////////////////////////////////////////
 # /////////////////////////////////////////////////////////////////
 
 
+# set SOURCE_DATE_EPOCH to git commit date/time for reproducible builds
+SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)
+
 # default build tooling definitions
 # default build tooling definitions
 TTFAH="$HOME/ttfautohint-build/local/bin/ttfautohint"
 TTFAH="$HOME/ttfautohint-build/local/bin/ttfautohint"
 FONTMAKE="pipenv run fontmake"
 FONTMAKE="pipenv run fontmake"
@@ -137,6 +140,7 @@ if ! $FONTMAKE -u "source/Hack-BoldItalic.ufo" -o ttf
 	    exit 1
 	    exit 1
 fi
 fi
 
 
+
 # Desktop ttf font post build fixes
 # Desktop ttf font post build fixes
 
 
 # DSIG table fix with adapted fontbakery Python script
 # DSIG table fix with adapted fontbakery Python script