summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/pChart2.1.2/examples/buildAll.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/pChart2.1.2/examples/buildAll.cmd')
-rw-r--r--notFinishedCode/pChart2.1.2/examples/buildAll.cmd52
1 files changed, 52 insertions, 0 deletions
diff --git a/notFinishedCode/pChart2.1.2/examples/buildAll.cmd b/notFinishedCode/pChart2.1.2/examples/buildAll.cmd
new file mode 100644
index 0000000..8518c72
--- /dev/null
+++ b/notFinishedCode/pChart2.1.2/examples/buildAll.cmd
@@ -0,0 +1,52 @@
+ECHO OFF
+setlocal ENABLEDELAYEDEXPANSION
+
+CLS
+ECHO.
+ECHO ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
+ECHO º º
+ECHO º Processing all examples (this may takes 1-2 minutes) º
+ECHO º º
+ECHO ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
+ECHO.
+
+php -v 1>NUL 2>NUL
+IF %ERRORLEVEL% == 0 GOTO getVersion
+GOTO noPHP
+
+:getVersion
+FOR /F "tokens=1,2 delims= " %%G IN ('php -v') DO (
+ IF %%G==PHP SET PHPVersion=%%H
+ )
+
+:render
+ECHO The PHP binaries (%PHPVersion%) have been located in your system PATH
+ECHO.
+ECHO Processing examples : >resources\errors.log
+
+REM SET /P Var=" Progress : "<NUL
+
+FOR %%f IN (*.*) DO (
+ set t=%%f
+ if !t:~-3! == php (
+ SET /P Var=þ<NUL
+ ECHO %%f >>resources\errors.log
+ php -q "%~dp0%%f" 1>NUL 2>>resources\errors.log
+ )
+)
+
+ECHO.
+ECHO.
+ECHO All the example have been rendered in the following folder :
+ECHO.
+ECHO %~dp0pictures\
+GOTO end
+
+:noPHP
+
+ECHO The PHP binaries can't be found. We strongly advise you to put it in
+ECHO the system path variable.
+ECHO.
+ECHO Examples rendering has been aborded.
+:end
+PAUSE >NUL \ No newline at end of file