forked from z38/metzli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildAll.cmd
43 lines (35 loc) · 1021 Bytes
/
buildAll.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
ECHO OFF
setlocal ENABLEDELAYEDEXPANSION
CLS
ECHO.
ECHO ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
ECHO º º
ECHO º Processing all examples (this may take a minute or two) º
ECHO º º
ECHO ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
ECHO.
FOR /F "tokens=1,2 delims= " %%G IN ('php -v 2^>NUL') DO (
IF %%G==PHP SET PHPVersion=%%H
)
IF NOT DEFINED PHPVersion GOTO noPHP
ECHO PHP binaries (%PHPVersion%) have been located
ECHO.
ECHO Processing examples : >temp\errors.log
SET /P Var=" Progress : "<NUL
FOR %%f IN (examples\example*.php) DO (
SET /P Var=þ<NUL
ECHO %%f >>temp\errors.log
php -q "%%f" 2>>&1>>temp\errors.log
)
ECHO.
ECHO.
ECHO Examples rendered in the "temp\" folder.
ECHO.
GOTO end
:noPHP
ECHO.
ECHO The PHP binaries can't be found!
ECHO.
ECHO Examples rendering has been aborded.
:end
PAUSE >NUL