make.bat: Fix `make showhashes` not working.
authorRay Molenkamp <github@lazydodo.com>
Sat, 16 Jun 2018 18:29:38 +0000 (12:29 -0600)
committerRay Molenkamp <github@lazydodo.com>
Sat, 16 Jun 2018 18:29:38 +0000 (12:29 -0600)
broke in recent refactor.

build_files/windows/show_hashes.cmd
make.bat

index ff03673..441e5bc 100644 (file)
@@ -3,10 +3,10 @@ if "%GIT%" == "" (
        goto EOF
 )
 cd "%BLENDER_DIR%"
-for /f "delims=" %%i in ('%GIT% rev-parse HEAD') do echo Branch_hash=%%i
+for /f "delims=" %%i in ('"%GIT%" rev-parse HEAD') do echo Branch_hash=%%i
 cd "%BLENDER_DIR%/release/datafiles/locale"
-for /f "delims=" %%i in ('%GIT% rev-parse HEAD') do echo Locale_hash=%%i
+for /f "delims=" %%i in ('"%GIT%" rev-parse HEAD') do echo Locale_hash=%%i
 cd "%BLENDER_DIR%/release/scripts/addons"
-for /f "delims=" %%i in ('%GIT% rev-parse HEAD') do echo Addons_Hash=%%i
+for /f "delims=" %%i in ('"%GIT%" rev-parse HEAD') do echo Addons_Hash=%%i
 cd "%BLENDER_DIR%"
 :EOF
\ No newline at end of file
index 577f820..18e861f 100644 (file)
--- a/make.bat
+++ b/make.bat
@@ -16,6 +16,11 @@ if errorlevel 1 goto EOF
 call "%BLENDER_DIR%\build_files\windows\find_dependencies.cmd"
 if errorlevel 1 goto EOF
 
+if "%BUILD_SHOW_HASHES%" == "1" (
+       call "%BLENDER_DIR%\build_files\windows\show_hashes.cmd"
+       goto EOF
+)
+
 if "%SHOW_HELP%" == "1" (
        call "%BLENDER_DIR%\build_files\windows\show_help.cmd"
        goto EOF