2017-03-09 11:10:47 +00:00
|
|
|
@rem *** Internal developer script to run Coverity ***
|
2015-02-13 19:51:30 +00:00
|
|
|
@echo off
|
2017-03-09 11:10:47 +00:00
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
|
2017-07-25 11:19:50 +00:00
|
|
|
set COV_DIR=D:\cov-analysis-win64-2017.07
|
2015-08-27 17:37:04 +00:00
|
|
|
set PATH=%PATH%;%COV_DIR%\bin
|
2015-02-13 19:51:30 +00:00
|
|
|
set PWD=%~dp0
|
2017-03-09 11:10:47 +00:00
|
|
|
set TARGET=x86_32
|
2015-02-25 01:45:47 +00:00
|
|
|
rmdir cov-int /s /q >NUL 2>NUL
|
2017-03-09 11:10:47 +00:00
|
|
|
rmdir %TARGET% /s /q >NUL 2>NUL
|
2015-02-13 19:51:30 +00:00
|
|
|
del cov-int.zip >NUL 2>NUL
|
|
|
|
mkdir cov-int
|
2017-03-09 11:10:47 +00:00
|
|
|
cov-build --dir cov-int msbuild rufus.sln /p:Configuration=Release,Platform=%TARGET% /maxcpucount
|
2017-01-04 17:23:53 +00:00
|
|
|
rem *** for when/if Coverity manage to clean their act
|
|
|
|
rem cov-build --dir cov-int C:\msys64\usr\bin\bash -cl "export PATH=/mingw32/bin:$PATH; cd /c/rufus; ./configure --build=i686-w64-mingw32 --host=i686-w64-mingw32 --disable-debug; make -j4"
|
2015-02-13 19:51:30 +00:00
|
|
|
rem *** zip script by Peter Mortensen - http://superuser.com/a/111266/286681
|
|
|
|
echo Set objArgs = WScript.Arguments> zip.vbs
|
|
|
|
echo InputFolder = objArgs(0)>> zip.vbs
|
|
|
|
echo ZipFile = objArgs(1)>> zip.vbs
|
|
|
|
echo CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile, True).Write "PK" ^& Chr(5) ^& Chr(6) ^& String(18, vbNullChar)>> zip.vbs
|
|
|
|
echo Set objShell = CreateObject("Shell.Application")>> zip.vbs
|
2015-02-25 01:45:47 +00:00
|
|
|
echo Set source = objShell.NameSpace(InputFolder)>> zip.vbs
|
2015-02-13 19:51:30 +00:00
|
|
|
echo objShell.NameSpace(ZipFile).CopyHere(source)>> zip.vbs
|
2017-03-09 11:10:47 +00:00
|
|
|
echo wScript.Sleep 8000>> zip.vbs
|
2015-02-13 19:51:30 +00:00
|
|
|
CScript zip.vbs %PWD%cov-int %PWD%cov-int.zip
|
|
|
|
del zip.vbs
|
2017-03-09 11:10:47 +00:00
|
|
|
pause
|