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:
authorKacper Michajłow <kasper93@gmail.com>2015-01-12 22:00:01 +0300
committerXhmikosR <xhmikosr@gmail.com>2015-01-20 00:05:29 +0300
commite945c522e67ee889f82a4f14bdb30b584a39be5e (patch)
treef4523e2a93226a2fb6cd8c698f1e8d356aa76c70 /contrib
parent4ed72edb57443e9cce4e2787cf8ee2f7ec052528 (diff)
coverity.bat: Add scan upload support.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/coverity.bat15
1 files changed, 14 insertions, 1 deletions
diff --git a/contrib/coverity.bat b/contrib/coverity.bat
index d65f2094c..4ee72fc1c 100755
--- a/contrib/coverity.bat
+++ b/contrib/coverity.bat
@@ -1,5 +1,5 @@
@ECHO OFF
-REM (C) 2013-2014 see Authors.txt
+REM (C) 2013-2015 see Authors.txt
REM
REM This file is part of MPC-HC.
REM
@@ -57,6 +57,11 @@ CALL "..\build.bat" clean Api Both Release silent
:tar
tar --version 1>&2 2>NUL || (ECHO. & ECHO ERROR: tar not found & GOTO SevenZip)
tar caf "MPC-HC.lzma" "cov-int"
+
+
+:Upload
+IF EXIST ..\build.user.bat" CALL "..\build.user.bat"
+%CURL% --form project=MPC-HC --form token=%COV_TOKEN% --form email=%COV_EMAIL% --form file=@MPC-HC.lzma --form version=%SHORT_HASH% http://scan5.coverity.com/cgi-bin/upload.py
GOTO End
@@ -86,6 +91,14 @@ FOR /F "tokens=2*" %%A IN (
EXIT /B
+:SubDetectCurl
+IF EXIST curl.exe (SET "CURL=curl.exe" & EXIT /B)
+IF EXIST "%CURL_PATH%\curl.exe" (SET "CURL=CURL_PATH%\curl.exe" & EXIT /B)
+FOR %%G IN (curl.exe) DO (SET "CURL_PATH=%%~$PATH:G")
+IF EXIST "%CURL_PATH%" (SET "CURL=%CURL_PATH%" & EXIT /B)
+EXIT /B
+
+
:End
POPD
ECHO. & ECHO Press any key to close this window...