improve build info
parent
ba0ac1fae0
commit
3447eaacc9
6
MAKE.bat
6
MAKE.bat
|
@ -902,9 +902,13 @@ git rev-list --count --first-parent HEAD > info.obj
|
||||||
set /p GIT_REVISION=<info.obj
|
set /p GIT_REVISION=<info.obj
|
||||||
git rev-parse --abbrev-ref HEAD > info.obj
|
git rev-parse --abbrev-ref HEAD > info.obj
|
||||||
set /p GIT_BRANCH=<info.obj
|
set /p GIT_BRANCH=<info.obj
|
||||||
|
git describe --tags --abbrev=0 > info.obj
|
||||||
|
set /p GIT_TAG=<info.obj
|
||||||
date /t > info.obj
|
date /t > info.obj
|
||||||
set /p LAST_MODIFIED=<info.obj
|
set /p LAST_MODIFIED=<info.obj
|
||||||
set args=-DBUILD_VERSION="\"!GIT_BRANCH!-!GIT_REVISION!-!build!-!dll!\"" !args!
|
git rev-parse --short HEAD > info.obj
|
||||||
|
set /p GIT_HASH=<info.obj
|
||||||
|
set args=-DBUILD_VERSION="\"!LAST_MODIFIED!!GIT_BRANCH!-!GIT_REVISION!-!GIT_TAG!-!GIT_HASH!-!build!-!dll!\"" !args!
|
||||||
|
|
||||||
if "!cc!"=="tcc" set "cc=call tools\tcc"
|
if "!cc!"=="tcc" set "cc=call tools\tcc"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue