diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-27 14:06:31 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-11-10 08:50:47 +0100 |
commit | 84ee7ded53300ff07181da8bb91daa36dd2f42d6 (patch) | |
tree | f59de04555caaa12e1cf10ed4ac9b25b374b0839 /scripts | |
parent | 4c9636a9813fd8b1ec28d8b2f96ab800f02fa8cf (diff) | |
download | ptxdist-84ee7ded53300ff07181da8bb91daa36dd2f42d6.tar.gz ptxdist-84ee7ded53300ff07181da8bb91daa36dd2f42d6.tar.xz |
define and use PTXDIST_BUILD_TIMESTAMP
A lot of packages use such a build timestamp. Define it once and use it
everywhere.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_reproducible.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_reproducible.sh b/scripts/lib/ptxd_lib_reproducible.sh index f0c1bcf8f..e2e664ba8 100644 --- a/scripts/lib/ptxd_lib_reproducible.sh +++ b/scripts/lib/ptxd_lib_reproducible.sh @@ -11,6 +11,9 @@ ptxd_lib_reproducible() { SOURCE_DATE_EPOCH="$(echo $(date --date="${PTXDIST_VERSION_YEAR}-${PTXDIST_VERSION_MONTH}-01 UTC" "+%s"))" export SOURCE_DATE_EPOCH + + PTXDIST_BUILD_TIMESTAMP="$(echo $(date --utc --date @${SOURCE_DATE_EPOCH} +%Y-%m-%dT%H:%M+0000))" + export PTXDIST_BUILD_TIMESTAMP } export -f ptxd_lib_reproducible |