Skip to content

Commit

Permalink
new way to get clover revision by Dids
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Isakov <[email protected]>
  • Loading branch information
SergeySlice committed Oct 28, 2019
1 parent a2ff20c commit 5864939
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CloverPackage/package/translate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export LC_CTYPE='C'

# ====== REVISION/VERSION ======
declare -r CLOVER_VERSION='v2.5k'
declare -r CLOVER_REVISION=$(git describe --tags $(git rev-list --tags --max-count=1))
# declare -r CLOVER_REVISION=$(git describe --tags $(git rev-list --tags --max-count=1))
declare -r CLOVER_REVISION=$(git describe --tags --abbrev=0)

# ==== CHECK ENVIRONEMENT ====

Expand Down
9 changes: 5 additions & 4 deletions cbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ rem set F_VER_TXT=vers.txt
rem # svnversion -n>%F_VER_TXT%
rem set /P s=<%F_VER_TXT%
rem # del %F_VER_TXT%
git rev-list --tags --max-count=1 > revs.txt
set /p c=< revs.txt
del revs.txt
git describe --tags %c% > vers.txt
rem git rev-list --tags --max-count=1 > revs.txt
rem set /p c=< revs.txt
rem del revs.txt
rem git describe --tags %c% > vers.txt
git describe --tags --abbrev=0 > vers.txt
set /P s=< vers.txt
del vers.txt

Expand Down
6 changes: 4 additions & 2 deletions ebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ MainBuildScript() {
checkCmdlineArguments $@
checkToolchain

local repoRev=$(git describe --tags $(git rev-list --tags --max-count=1))
# local repoRev=$(git describe --tags $(git rev-list --tags --max-count=1))
local repoRev=$(git describe --tags --abbrev=0)

#
# we are building the same rev as before?
Expand Down Expand Up @@ -574,7 +575,8 @@ MainBuildScript() {
if (( $SkipAutoGen == 0 )) || (( $FORCEREBUILD == 1 )); then

# local clover_revision=$(cat "${CLOVERROOT}/${VERSTXT}")
local clover_revision=$(git describe --tags $(git rev-list --tags --max-count=1))
# local clover_revision=$(git describe --tags $(git rev-list --tags --max-count=1))
local clover_revision=$(git describe --tags --abbrev=0)
local clover_build_date=$(date '+%Y-%m-%d %H:%M:%S')
#echo "#define FIRMWARE_VERSION \"2.31\"" > "$CLOVERROOT"/Version.h

Expand Down

0 comments on commit 5864939

Please sign in to comment.