Fix a glitch when PPSSPP_GIT_VERSION_NO_UPDATE = 1.

Would cause the other version not to generate properly.
This commit is contained in:
Unknown W. Brackets 2015-08-24 21:07:11 -07:00
parent 4ff8c8c8e0
commit e6adf48c38

View file

@ -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