make build reproducible with variation of TZ

This commit is contained in:
Félix Sipma 2017-04-26 01:13:47 +02:00 committed by Jasper Van der Jeugt
parent f68a137f59
commit e14d44bd4c

View File

@ -9,7 +9,7 @@ SOURCE_DATE_EPOCH?=$(shell date '+%s' \
--date="$(shell git log -1 --format=%cd --date=rfc)") --date="$(shell git log -1 --format=%cd --date=rfc)")
# Prettify the date. # Prettify the date.
SOURCE_DATE=$(shell env LC_ALL=C date '+%B %d, %Y' -d "@${SOURCE_DATE_EPOCH}") SOURCE_DATE=$(shell env LC_ALL=C TZ=UTC date '+%B %d, %Y' -d "@${SOURCE_DATE_EPOCH}")
extra/patat.1: README.md extra/make-man extra/patat.1: README.md extra/make-man
SOURCE_DATE="$(SOURCE_DATE)" ./extra/make-man >$@ SOURCE_DATE="$(SOURCE_DATE)" ./extra/make-man >$@