Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-10-25 14:54:33 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-10-27 12:03:16 +0400
commitb11dff22bcf57eb3163717b8bcac5c1b14835faa (patch)
treea60cd206224f700859b2d97f8272dcdba788ac17 /contrib
parent99ea7bbe8ba7b52d6c917d3740a8c257b6321fab (diff)
Update coverity.bat.
* the COVDIR variable can be set to specify the coverity dir * use our build.bat as the coverity build command * build release filters too
Diffstat (limited to 'contrib')
-rw-r--r--contrib/coverity.bat26
1 files changed, 17 insertions, 9 deletions
diff --git a/contrib/coverity.bat b/contrib/coverity.bat
index f50c53d26..524e9ee1a 100644
--- a/contrib/coverity.bat
+++ b/contrib/coverity.bat
@@ -21,14 +21,18 @@ SETLOCAL
PUSHD %~dp0
-SET COVDIR=H:\progs\thirdparty\cov-analysis-win64-6.6.1
+IF NOT DEFINED COVDIR SET "COVDIR=H:\progs\thirdparty\cov-analysis-win64-6.6.1"
+IF DEFINED COVDIR IF NOT EXIST "%COVDIR%" (
+ ECHO.
+ ECHO ERROR: Coverity not found in "%COVDIR%"
+ GOTO End
+)
-CALL "%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" x86
-SET MSBUILD_SWITCHES=/nologo /consoleloggerparameters:Verbosity=minimal /maxcpucount^
- /nodeReuse:true /target:Rebuild /property:Configuration="Release Lite";Platform=Win32
+CALL "%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" x86
-"%COVDIR%\bin\cov-build.exe" --dir cov-int MSBuild "..\mpc-hc.sln" %MSBUILD_SWITCHES%
+"%COVDIR%\bin\cov-build.exe" --dir cov-int "..\build.bat" rebuild lite win32 main release silent
+"%COVDIR%\bin\cov-build.exe" --dir cov-int "..\build.bat" rebuild filters win32 release silent
IF EXIST "MPC-HC.tar" DEL "MPC-HC.tar"
IF EXIST "MPC-HC.tgz" DEL "MPC-HC.tgz"
@@ -36,14 +40,18 @@ IF EXIST "MPC-HC.tgz" DEL "MPC-HC.tgz"
:tar
tar --version 1>&2 2>NUL || (ECHO. & ECHO ERROR: tar not found & GOTO SevenZip)
-tar czvf MPC-HC.tgz cov-int
+tar czvf "MPC-HC.tgz" "cov-int"
GOTO End
:SevenZip
-IF NOT EXIST "%PROGRAMFILES%\7za.exe" (ECHO. & ECHO ERROR: "%PROGRAMFILES%\7za.exe" not found & GOTO End)
-"%PROGRAMFILES%\7za.exe" a -ttar MPC-HC.tar cov-int
-"%PROGRAMFILES%\7za.exe" a -tgzip MPC-HC.tgz MPC-HC.tar
+IF NOT EXIST "%PROGRAMFILES%\7za.exe" (
+ ECHO.
+ ECHO ERROR: "%PROGRAMFILES%\7za.exe" not found
+ GOTO End
+)
+"%PROGRAMFILES%\7za.exe" a -ttar "MPC-HC.tar" "cov-int"
+"%PROGRAMFILES%\7za.exe" a -tgzip "MPC-HC.tgz" "MPC-HC.tar"
IF EXIST "MPC-HC.tar" DEL "MPC-HC.tar"