get SOURCE_DATE_EPOCH from git log time

start of work towards reproducible builds
This commit is contained in:
Lucy Phipps 2021-05-11 20:36:23 +01:00 committed by GitHub
parent d873f2dd73
commit d5313fab26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@
set -e -o pipefail -u
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
export SOURCE_DATE_EPOCH
: "${TMPDIR:=/tmp}"
export TMPDIR