diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-06-05 08:29:50 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-06-05 21:42:34 +0400 |
commit | 3f0190235e062bf793b463af936547e182de3b26 (patch) | |
tree | b1f0f9fd82ffe2644e64cf12c10352aca5d31671 /contrib/coverity.bat | |
parent | 0de0acecff7c33a3dbf0a9d6d4f4e73de86b2566 (diff) |
Improve coverity.bat.
* Use tar if available
* Add license header
Diffstat (limited to 'contrib/coverity.bat')
-rw-r--r-- | contrib/coverity.bat | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/contrib/coverity.bat b/contrib/coverity.bat index 383b36fbf..8af081515 100644 --- a/contrib/coverity.bat +++ b/contrib/coverity.bat @@ -1,4 +1,22 @@ @ECHO OFF +REM (C) 2013 see Authors.txt +REM +REM This file is part of MPC-HC. +REM +REM MPC-HC is free software; you can redistribute it and/or modify +REM it under the terms of the GNU General Public License as published by +REM the Free Software Foundation; either version 3 of the License, or +REM (at your option) any later version. +REM +REM MPC-HC is distributed in the hope that it will be useful, +REM but WITHOUT ANY WARRANTY; without even the implied warranty of +REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +REM GNU General Public License for more details. +REM +REM You should have received a copy of the GNU General Public License +REM along with this program. If not, see <http://www.gnu.org/licenses/>. + + SETLOCAL PUSHD %~dp0 @@ -12,12 +30,23 @@ SET MSBUILD_SWITCHES=/nologo /consoleloggerparameters:Verbosity=minimal /maxcpuc "%COVDIR%\bin\cov-build.exe" --dir cov-int MSBuild "..\mpc-hc.sln" %MSBUILD_SWITCHES% +:tar +tar --version 2>NUL || (ECHO. & ECHO ERROR: tar not found & GOTO SevenZip) +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) IF EXIST "MPC-HC.tar" DEL "MPC-HC.tar" IF EXIST "MPC-HC.tgz" DEL "MPC-HC.tgz" "%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" + +:End +POPD +ECHO. & ECHO Press any key to close this window... +PAUSE >NUL ENDLOCAL -PAUSE EXIT /B |