diff options
author | kasper93 <kasper93@gmail.com> | 2012-12-08 18:26:53 +0400 |
---|---|---|
committer | kasper93 <kasper93@gmail.com> | 2012-12-10 03:42:38 +0400 |
commit | 7a98e0d2c46cb3465c0f4c510f535d4f535503e1 (patch) | |
tree | ceca854c89079c9558c8ee142ce3a27a81a9aaac /build.bat | |
parent | e56f2865091fe0d8eb9278d680afa84113c1c898 (diff) |
Add /silent switch to the build.bat to avoid pause when compilation fails.
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -86,6 +86,7 @@ FOR %%G IN (%ARG%) DO ( IF /I "%%G" == "7z" SET "ZIP=True" & SET /A VALID+=1 & SET /A ARGCL+=1 & SET /A ARGM+=1
IF /I "%%G" == "Lite" SET "MPCHC_LITE=True" & SET /A VALID+=1 & SET /A ARGL+=1
IF /I "%%G" == "FFmpeg" SET "Rebuild=FFmpeg" & SET /A VALID+=1 & SET /A ARGFF+=1 & SET /A ARGRE+=1
+ IF /I "%%G" == "Silent" SET "SILENT=True"
)
FOR %%G IN (%*) DO SET /A INPUT+=1
@@ -524,8 +525,10 @@ IF /I "%~1" == "ERROR" ( )
ECHO ------------------------------ & ECHO.
IF /I "%~1" == "ERROR" (
- ECHO Press any key to exit...
- PAUSE >NUL
+ IF NOT DEFINED SILENT (
+ ECHO Press any key to exit...
+ PAUSE >NUL
+ )
EXIT /B 1
) ELSE (
EXIT /B 0
|