Commit 721ffd42 authored by Stephane Glondu's avatar Stephane Glondu

Use SOURCE_DATE_EPOCH if defined for reproducible builds

See https://reproducible-builds.org/specs/source-date-epoch/
parent 6fdf1dd8
Pipeline #57969 passed with stages
in 13 minutes and 50 seconds
......@@ -4,7 +4,9 @@
if [ -d ../.git ] && which git >/dev/null 2>&1; then
BUILD=${BUILD:-$(git describe)}
else
BUILD=${BUILD:-$(date -u +%Y%m%d)}
DATE=${SOURCE_DATE_EPOCH:-$(date +%s)}
DATE=$(date -d @$DATE +%Y%m%d)
BUILD=${BUILD:-$DATE}
fi
head -n1 VERSION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment