Commit 5864939 1 parent a2ff20c commit 5864939 Copy full SHA for 5864939
File tree 3 files changed +11
-7
lines changed
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ export LC_CTYPE='C'
20
20
21
21
# ====== REVISION/VERSION ======
22
22
declare -r CLOVER_VERSION=' v2.5k'
23
- declare -r CLOVER_REVISION=$( git describe --tags $( git rev-list --tags --max-count=1) )
23
+ # declare -r CLOVER_REVISION=$(git describe --tags $(git rev-list --tags --max-count=1))
24
+ declare -r CLOVER_REVISION=$( git describe --tags --abbrev=0)
24
25
25
26
# ==== CHECK ENVIRONEMENT ====
26
27
Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ rem set F_VER_TXT=vers.txt
57
57
rem # svnversion -n> %F_VER_TXT%
58
58
rem set /P s=< %F_VER_TXT%
59
59
rem # del %F_VER_TXT%
60
- git rev-list --tags --max-count=1 > revs.txt
61
- set /p c = < revs.txt
62
- del revs.txt
63
- git describe --tags %c% > vers.txt
60
+ rem git rev-list --tags --max-count=1 > revs.txt
61
+ rem set /p c=< revs.txt
62
+ rem del revs.txt
63
+ rem git describe --tags %c% > vers.txt
64
+ git describe --tags --abbrev=0 > vers.txt
64
65
set /P s = < vers.txt
65
66
del vers.txt
66
67
Original file line number Diff line number Diff line change @@ -453,7 +453,8 @@ MainBuildScript() {
453
453
checkCmdlineArguments $@
454
454
checkToolchain
455
455
456
- local repoRev=$( git describe --tags $( git rev-list --tags --max-count=1) )
456
+ # local repoRev=$(git describe --tags $(git rev-list --tags --max-count=1))
457
+ local repoRev=$( git describe --tags --abbrev=0)
457
458
458
459
#
459
460
# we are building the same rev as before?
@@ -574,7 +575,8 @@ MainBuildScript() {
574
575
if (( $SkipAutoGen == 0 )) || (( $FORCEREBUILD == 1 )) ; then
575
576
576
577
# local clover_revision=$(cat "${CLOVERROOT}/${VERSTXT}")
577
- local clover_revision=$( git describe --tags $( git rev-list --tags --max-count=1) )
578
+ # local clover_revision=$(git describe --tags $(git rev-list --tags --max-count=1))
579
+ local clover_revision=$( git describe --tags --abbrev=0)
578
580
local clover_build_date=$( date ' +%Y-%m-%d %H:%M:%S' )
579
581
# echo "#define FIRMWARE_VERSION \"2.31\"" > "$CLOVERROOT"/Version.h
580
582
You can’t perform that action at this time.
0 commit comments