From bdbe4fd8c37a4e1b97fbfa48788f047fdf3d1931 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sun, 30 Aug 2015 18:45:47 -0700 Subject: [PATCH] Fix version.mk references in version.bat --- fb2k/version.bat | 8 ++++---- xmp-vgmstream/version.bat | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fb2k/version.bat b/fb2k/version.bat index 5dd714c6..344bd7d7 100644 --- a/fb2k/version.bat +++ b/fb2k/version.bat @@ -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 diff --git a/xmp-vgmstream/version.bat b/xmp-vgmstream/version.bat index 5dd714c6..344bd7d7 100644 --- a/xmp-vgmstream/version.bat +++ b/xmp-vgmstream/version.bat @@ -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