diff options
| author | Bernhard M. Wiedemann | 2018-07-13 04:19:33 +0200 | 
|---|---|---|
| committer | Bernhard M. Wiedemann | 2018-07-13 04:19:33 +0200 | 
| commit | 1e9a964f4e77e433701d1a61b121c625d10d7084 (patch) | |
| tree | 0f9b3b5ca8ab0c975996271674030ab186924fdc /imap | |
| parent | 4fc91797ada09e9f8e3bd0a3cdbe0c78edf2530d (diff) | |
| download | courier-libs-1e9a964f4e77e433701d1a61b121c625d10d7084.tar.bz2 | |
imap: Allow to override build date
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.
This date call works with various variants of date (incl GNU and BSD).
Diffstat (limited to 'imap')
| -rw-r--r-- | imap/configure.ac | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/imap/configure.ac b/imap/configure.ac index b7f31fd..fb0a51f 100644 --- a/imap/configure.ac +++ b/imap/configure.ac @@ -341,7 +341,8 @@ courier)  	;;  esac -date=`date` +SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-`date +%s`}" +date=`date -u -d "@$SOURCE_DATE_EPOCH" "+%F %T" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+%F %T" 2>/dev/null || date -u "+%F %T"`  AC_DEFINE_UNQUOTED(PROGRAMVERSION, "$package/${target_cpu}-${target_vendor}-${target_os}/$date",  		       [ Source code version ]) | 
