Should allow reproducible builds

This commit is contained in:
Philippe Teuwen 2024-09-15 13:55:54 +02:00
parent 32058894ea
commit fbef3c0a21

View file

@ -65,7 +65,15 @@ if [ "$commandGIT" != "" ]; then
fi
if [ "$gitbranch" != "" ] && [ "$gitversion" != "" ]; then
fullgitinfo="${fullgitinfo}/${gitbranch}/${gitversion}"
ctime="$(date '+%Y-%m-%d %H:%M:%S')"
# if FORCED_DATE present and properly formatted:
case "$FORCED_DATE" in
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]" "[0-9][0-9]:[0-9][0-9]:[0-9][0-9])
ctime="$FORCED_DATE"
;;
*)
ctime="$(date '+%Y-%m-%d %H:%M:%S')"
;;
esac
else
fullgitinfo="${fullgitinfo}/master/release (git)"
fi