mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 06:50:20 +01:00
Fix version.mk references in version.bat
This commit is contained in:
parent
7dbf982f2f
commit
bdbe4fd8c3
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user