Fix version.mk references in version.bat

This commit is contained in:
Chris Moeller 2015-08-30 18:45:47 -07:00
parent 7dbf982f2f
commit bdbe4fd8c3
2 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ set version=!version:^:=_!
if not "%version%"=="" goto :gotversion
if exist "version.mk" goto :getversion
if exist "..\version.mk" goto :getversion
echo Git cannot be found, nor can version.mk. Generating unknown version.
@ -20,7 +20,7 @@ goto :gotversion
:getversion
for /f "delims== tokens=2" %%v in (version.mk) do set version=%%v
for /f "delims== tokens=2" %%v in (..\version.mk) do set version=%%v
set version=!version:^"=!
set version=!version: =!
@ -34,8 +34,8 @@ echo %version_out%> %1_temp
if %version%==unknown goto :skipgenerate
echo # static version string; update manually before and after every release.> "version.mk"
echo %version_mk%>> "version.mk"
echo # static version string; update manually before and after every release.> "..\version.mk"
echo %version_mk%>> "..\version.mk"
:skipgenerate

View File

@ -10,7 +10,7 @@ set version=!version:^:=_!
if not "%version%"=="" goto :gotversion
if exist "version.mk" goto :getversion
if exist "..\version.mk" goto :getversion
echo Git cannot be found, nor can version.mk. Generating unknown version.
@ -20,7 +20,7 @@ goto :gotversion
:getversion
for /f "delims== tokens=2" %%v in (version.mk) do set version=%%v
for /f "delims== tokens=2" %%v in (..\version.mk) do set version=%%v
set version=!version:^"=!
set version=!version: =!
@ -34,8 +34,8 @@ echo %version_out%> %1_temp
if %version%==unknown goto :skipgenerate
echo # static version string; update manually before and after every release.> "version.mk"
echo %version_mk%>> "version.mk"
echo # static version string; update manually before and after every release.> "..\version.mk"
echo %version_mk%>> "..\version.mk"
:skipgenerate