1@echo off 2 3set ResourcesDirectory=%CONFIGURATIONBUILDDIR%\bin\TestWebKitAPI.resources 4 5if "%1" EQU "clean" goto :clean 6if "%1" EQU "rebuild" call :clean 7 8echo Copying resources... 9mkdir 2>NUL "%ResourcesDirectory%" 10for %%f in ( 11 ..\Tests\WebKit2\file-with-anchor.html 12 ..\Tests\WebKit2\find.html 13 ..\Tests\WebKit2\icon.png 14 ..\Tests\WebKit2\simple.html 15 ..\Tests\WebKit2\simple-accelerated-compositing.html 16 ..\Tests\WebKit2\simple-form.html 17 ..\Tests\WebKit2\spacebar-scrolling.html 18) do ( 19 xcopy /y /d %%f "%ResourcesDirectory%" 20) 21 22goto :EOF 23 24:clean 25 26echo Deleting resources... 27del /s /q "%ResourcesDirectory%" 28