Merge pull request #297 from bmwiedemann/date

Set EXTERNAL_BUILD_TIMESTAMP from SOURCE_DATE_EPOCH
This commit is contained in:
Aaron Jones 2020-01-02 20:29:13 +00:00 committed by GitHub
commit 28e12fad3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,9 @@ fi
generation=`expr $generation + 1`
if test -n "$SOURCE_DATE_EPOCH" -a "$EXTERNAL_BUILD_TIMESTAMP" = '' ; then
EXTERNAL_BUILD_TIMESTAMP=$SOURCE_DATE_EPOCH
fi
if test "$EXTERNAL_BUILD_TIMESTAMP" = ''; then
creation=`LC_ALL=C date | \
awk '{if (NF == 6) \