diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2014-04-13 12:49:29 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2014-04-14 01:31:30 +0400 |
commit | 79a73f33388de1f0ed176a1db43c8ba6e4bffc96 (patch) | |
tree | 0e8119c3b87ca2e9f835f35625f362427e27ac67 /contrib | |
parent | 8904c63570958a8d2e5b9ac08aebac8c258e3c53 (diff) |
Update contrib/coverity.bat.
Use lzma with tar.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/coverity.bat | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/contrib/coverity.bat b/contrib/coverity.bat index 2b1cd58e9..924f232fb 100644 --- a/contrib/coverity.bat +++ b/contrib/coverity.bat @@ -35,28 +35,38 @@ IF %ERRORLEVEL% NEQ 0 ( GOTO End ) + +:Cleanup IF EXIST "cov-int" RD /q /s "cov-int" +IF EXIST "MPC-HC.lzma" DEL "MPC-HC.lzma" +IF EXIST "MPC-HC.tar" DEL "MPC-HC.tar" +IF EXIST "MPC-HC.tgz" DEL "MPC-HC.tgz" + +:Main "%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 "%COVDIR%\bin\cov-build.exe" --dir cov-int "..\build.bat" Rebuild IconLib Win32 Release silent "%COVDIR%\bin\cov-build.exe" --dir cov-int "..\build.bat" Rebuild Api Win32 Release silent -IF EXIST "MPC-HC.tar" DEL "MPC-HC.tar" -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 caf "MPC-HC.lzma" "cov-int" GOTO End :SevenZip CALL :SubDetectSevenzipPath -"%SEVENZIP%" a -ttar "MPC-HC.tar" "cov-int" -"%SEVENZIP%" a -tgzip "MPC-HC.tgz" "MPC-HC.tar" -IF EXIST "MPC-HC.tar" DEL "MPC-HC.tar" + +rem Coverity is totally bogus with lzma... +rem And since I cannot replicate the arguments with 7-Zip, just use tar/gzip. +IF EXIST "%SEVENZIP%" ( + "%SEVENZIP%" a -ttar "MPC-HC.tar" "cov-int" + "%SEVENZIP%" a -tgzip "MPC-HC.tgz" "MPC-HC.tar" + IF EXIST "MPC-HC.tar" DEL "MPC-HC.tar" + GOTO End +) :SubDetectSevenzipPath |