mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-21 22:54:40 +08:00
Should allow reproducible builds
This commit is contained in:
parent
32058894ea
commit
fbef3c0a21
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue