copy-resources.cmd revision f05b935882198ccf7d81675736e3aeb089c5113a
1@echo off
2
3set ResourcesDirectory=%WebKitOutputDir%\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\spacebar-scrolling.html
16) do (
17    xcopy /y /d %%f "%ResourcesDirectory%"
18)
19
20goto :EOF
21
22:clean
23
24echo Deleting resources...
25del /s /q "%ResourcesDirectory%"
26