From 0663544be8a0e0ea644655b736f9b0a47453c105 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Sun, 9 May 2021 15:09:15 +0200 Subject: Allow to override build date with SOURCE_DATE_EPOCH (#1176) in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. --- configure.seed | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.seed b/configure.seed index ef84661a2..ef966353d 100644 --- a/configure.seed +++ b/configure.seed @@ -76,7 +76,10 @@ if test -d ".git" || test -f ".git" ; then : else GIT_RELEASE="${PACKAGE_VERSION}" GIT_DATE=`date -u -r CHANGELOG.md` - NDPI_API_VERSION=`date +%s | cut -c7-10` + if test -z "$SOURCE_DATE_EPOCH" ; then : + SOURCE_DATE_EPOCH=`date +%s` + fi + NDPI_API_VERSION=`echo $SOURCE_DATE_EPOCH | cut -c7-10` fi NDPI_API_VERSION=`echo $NDPI_API_VERSION | sed 's/^0*//'` -- cgit v1.2.3