Skip to content

Commit

Permalink
Should allow reproducible builds
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Sep 15, 2024
1 parent 3205889 commit fbef3c0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/mkversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbef3c0

Please sign in to comment.