[Build] Use version.h.in for SetGitProperties.cmd
This commit is contained in:
parent
e4823ef52a
commit
425a1649e0
|
@ -9,7 +9,7 @@ cd /d %origdir%
|
||||||
for /f %%i in ('git describe --tags --long') do set GIT_DESCRIBE=%%i > nul
|
for /f %%i in ('git describe --tags --long') do set GIT_DESCRIBE=%%i > nul
|
||||||
|
|
||||||
for /F "tokens=1,2,3 delims=-" %%i in ("%GIT_DESCRIBE%") do call :process_git_desc %%i %%j %%k
|
for /F "tokens=1,2,3 delims=-" %%i in ("%GIT_DESCRIBE%") do call :process_git_desc %%i %%j %%k
|
||||||
for /F "tokens=1,2,3" %%i in (%base_dir%\Source\Project64-core\version.h) do call :process_version %%i %%j %%k
|
for /F "tokens=1,2,3" %%i in (%base_dir%\Source\Project64-core\version.h.in) do call :process_version %%i %%j %%k
|
||||||
set VERSION=v%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_REVISION%-%VERSION_BUILD%-%VERSION_COMMIT%
|
set VERSION=v%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_REVISION%-%VERSION_BUILD%-%VERSION_COMMIT%
|
||||||
|
|
||||||
echo GIT_DESCRIBE = %VERSION% > "%base_dir%\git.properties"
|
echo GIT_DESCRIBE = %VERSION% > "%base_dir%\git.properties"
|
||||||
|
|
Loading…
Reference in New Issue