| 1 |
@echo off |
| 2 |
rem Usage: pass the path to cov-build.exe (with trailing backslash, without the exe) as first parameter |
| 3 |
rem ATTENTION: this deletes the output folder "cov-int" and the output file "cov-int.zip" first! |
| 4 |
|
| 5 |
set devenv="%ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" |
| 6 |
if not exist %devenv% set devenv="%ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\vcexpress.exe" |
| 7 |
if not exist %devenv% set devenv="%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" |
| 8 |
if not exist %devenv% set devenv="%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\vcexpress.exe" |
| 9 |
set covbuild=%1cov-build.exe |
| 10 |
set covoutput=cov-int |
| 11 |
set zip7="c:\Program Files\7-Zip\7z.exe" |
| 12 |
|
| 13 |
pushd %~dp0 |
| 14 |
|
| 15 |
if exist %covoutput% rd /s /q %covoutput% |
| 16 |
if exist %covoutput%.zip del %covoutput%.zip |
| 17 |
|
| 18 |
%covbuild% --dir %covoutput% %devenv% lwip_test.sln /build Debug || goto error |
| 19 |
|
| 20 |
if exist %zip7% goto dozip |
| 21 |
echo error: 7zip not found at \"%zip7% |
| 22 |
goto error |
| 23 |
:dozip |
| 24 |
%zip7% a %covoutput%.zip %covoutput% |
| 25 |
:error |
| 26 |
popd |