Add REVISION_DATE and COMMIT_HASH in Version.h

This commit is contained in:
jief666 2020-09-30 17:09:07 +03:00
parent e48ae97c60
commit b112cc093d

View File

@ -603,6 +603,9 @@ MainBuildScript() {
fi fi
echo "#define REVISION_STR \"Clover revision: ${clover_revision} $sha1\"" >> "$CLOVERROOT"/Version.h echo "#define REVISION_STR \"Clover revision: ${clover_revision} $sha1\"" >> "$CLOVERROOT"/Version.h
# echo "#define REVISION_STR \"Clover revision: ${clover_revision}\"" >> "$CLOVERROOT"/Version.h # echo "#define REVISION_STR \"Clover revision: ${clover_revision}\"" >> "$CLOVERROOT"/Version.h
rev_date=$(git show -s --format=%ci $(git rev-parse HEAD))
echo "#define REVISION_DATE \"${rev_date}\"" >> "$CLOVERROOT"/Version.h
echo "#define COMMIT_HASH \"$(git rev-parse HEAD)\"" >> "$CLOVERROOT"/Version.h
local clover_build_info="Args: " local clover_build_info="Args: "
if [[ -n "$@" ]]; then if [[ -n "$@" ]]; then