mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-23 16:17:40 +01:00
SHA1 commit version in Version.h
This commit is contained in:
parent
9de5c877b5
commit
396ce9b738
11
ebuild.sh
11
ebuild.sh
@ -558,12 +558,21 @@ MainBuildScript() {
|
||||
|
||||
# Build Clover version
|
||||
if (( $SkipAutoGen == 0 )) || (( $FORCEREBUILD == 1 )); then
|
||||
|
||||
local clover_revision=$(cat "${CLOVERROOT}/${VERSTXT}")
|
||||
|
||||
local clover_build_date=$(date '+%Y-%m-%d %H:%M:%S')
|
||||
#echo "#define FIRMWARE_VERSION \"2.31\"" > "$CLOVERROOT"/Version.h
|
||||
|
||||
echo "#define FIRMWARE_BUILDDATE \"${clover_build_date}\"" > "$CLOVERROOT"/Version.h
|
||||
echo "#define FIRMWARE_REVISION L\"${clover_revision}\"" >> "$CLOVERROOT"/Version.h
|
||||
echo "#define REVISION_STR \"Clover revision: ${clover_revision}\"" >> "$CLOVERROOT"/Version.h
|
||||
|
||||
local sha1="(github unknown)"
|
||||
if [[ -d "${CLOVERROOT}"/.git ]]; then
|
||||
sha1="($(git rev-parse --abbrev-ref HEAD), commit $(git rev-parse --short HEAD))"
|
||||
fi
|
||||
echo "#define REVISION_STR \"Clover revision: ${clover_revision} $sha1\"" >> "$CLOVERROOT"/Version.h
|
||||
# echo "#define REVISION_STR \"Clover revision: ${clover_revision}\"" >> "$CLOVERROOT"/Version.h
|
||||
|
||||
local clover_build_info="Args: "
|
||||
if [[ -n "$@" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user