From 55a0aa93676555418b771874020d41a07a69caf3 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 23 Sep 2014 19:44:07 +0300 Subject: [PATCH] build.bat: Fix 7-Zip detection. --- build.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.bat b/build.bat index 683441648..3c121d8d8 100644 --- a/build.bat +++ b/build.bat @@ -52,7 +52,7 @@ POPD IF /I "%BUILDTYPE%" == "Clean" GOTO END CALL :SubDetectSevenzipPath -IF DEFINED SEVENZIP_PATH IF EXIST "%SEVENZIP_PATH%" ( +IF DEFINED SEVENZIP IF EXIST "%SEVENZIP%" ( CALL :SubGetVersion CALL :SubZipFile ) @@ -101,7 +101,7 @@ COPY /Y /V "..\..\..\Tesseract\tessdata\configs\hocr" "temp_zip\Tesseract\tes COPY /Y /V "..\..\..\Tesseract\tessdata\eng.traineddata" "temp_zip\Tesseract\tessdata\" PUSHD "temp_zip" -START "" /B /WAIT "%SEVENZIP_PATH%" a -tzip -mx=9 "SE%VERSION%.zip" * >NUL +START "" /B /WAIT "%SEVENZIP%" a -tzip -mx=9 "SE%VERSION%.zip" * >NUL IF %ERRORLEVEL% NEQ 0 GOTO EndWithError