diff options
Diffstat (limited to 'contrib/run_astyle.bat')
-rwxr-xr-x | contrib/run_astyle.bat | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/run_astyle.bat b/contrib/run_astyle.bat index b08b32a83..7e75e8b83 100755 --- a/contrib/run_astyle.bat +++ b/contrib/run_astyle.bat @@ -1,5 +1,5 @@ @ECHO OFF -REM (C) 2012-2013 see Authors.txt +REM (C) 2012-2014 see Authors.txt REM REM This file is part of MPC-HC. REM @@ -21,7 +21,7 @@ SETLOCAL PUSHD %~dp0 -SET "AStyleVerMin=2.04" +SET "AStyleVerReq=2.05.1" astyle --version 2>NUL || (ECHO. & ECHO ERROR: AStyle not found & GOTO End) CALL :SubCheckVer || GOTO End @@ -52,8 +52,8 @@ FOR /F "tokens=4 delims= " %%A IN ('astyle --version 2^>^&1 NUL') DO ( SET "AStyleVer=%%A" ) -IF %AStyleVer% LSS %AStyleVerMin% ( - ECHO. & ECHO ERROR: AStyle v%AStyleVer% is too old, please update AStyle to v%AStyleVerMin% or newer. +IF %AStyleVer% NEQ %AStyleVerReq% ( + ECHO. & ECHO ERROR: AStyle v%AStyleVerReq% is required. EXIT /B 1 ) EXIT /B |