mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a glitch when PPSSPP_GIT_VERSION_NO_UPDATE = 1.
Would cause the other version not to generate properly.
This commit is contained in:
parent
4ff8c8c8e0
commit
e6adf48c38
1 changed files with 4 additions and 2 deletions
|
@ -57,6 +57,10 @@ if errorlevel 1 (
|
|||
set GIT_MISSING=1
|
||||
)
|
||||
|
||||
if not "%GIT_MISSING%" == "1" (
|
||||
for /F %%I in ('call %GIT% describe --always') do set GIT_VERSION=%%I
|
||||
)
|
||||
|
||||
if exist "%GIT_VERSION_FILE%" (
|
||||
rem // Skip updating the file if PPSSPP_GIT_VERSION_NO_UPDATE is 1.
|
||||
findstr /B /C:"#define PPSSPP_GIT_VERSION_NO_UPDATE 1" "%GIT_VERSION_FILE%" > NUL
|
||||
|
@ -76,8 +80,6 @@ if "%GIT_MISSING%" == "1" (
|
|||
goto gitdone
|
||||
)
|
||||
|
||||
for /F %%I in ('call %GIT% describe --always') do set GIT_VERSION=%%I
|
||||
|
||||
rem // Don't modify the file if it already has the current version.
|
||||
if exist "%GIT_VERSION_FILE%" (
|
||||
findstr /C:"%GIT_VERSION%" "%GIT_VERSION_FILE%" > NUL
|
||||
|
|
Loading…
Add table
Reference in a new issue