summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_netbsd.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-01-27 02:06:45 +0100
committerHolger Levsen <holger@layer-acht.org>2016-01-27 02:06:45 +0100
commitd25f16af18c27ff1c1838ea2ebe700339a07a1b5 (patch)
tree7f9a3d2318cd73789eabf67822ae4fef059e558d /bin/reproducible_netbsd.sh
parent3cd3b19b37ead8f64473b4b3e57086e4b0d4ee80 (diff)
downloadjenkins.debian.net-d25f16af18c27ff1c1838ea2ebe700339a07a1b5.tar.xz
reproducible netbsd: explain MK_TIMESTAMP is set to SOURCE_DATE_EPOCH
Diffstat (limited to 'bin/reproducible_netbsd.sh')
-rwxr-xr-xbin/reproducible_netbsd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_netbsd.sh b/bin/reproducible_netbsd.sh
index 2b07c88e..db1ffa21 100755
--- a/bin/reproducible_netbsd.sh
+++ b/bin/reproducible_netbsd.sh
@@ -60,7 +60,9 @@ git log -1
# different switches to make two builds from the same source tree
# result in the same build results.
export MKREPRO="yes"
-MK_TIMESTAMP=$(git log -1 --pretty=%ct)
+# MK_TIMESTAMP is set to SOURCE_DATE_EPOCH of netbsd.git
+SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
+MK_TIMESTAMP=${SOURCE_DATE_EPOCH}
echo "============================================================================="
echo "$(date -u) - Building NetBSD ${NETBSD_VERSION} - first build run."