Commit:    95d239fe0e170d1a3c0def90f404a1c31333f9b5
Author:    Anatol Belski <[email protected]>         Fri, 11 Apr 2014 14:56:03 +0200
Parents:   7d8aa7f00c54ff32875956425c442950b5ee9999
Branches:  master

Link:       
http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=95d239fe0e170d1a3c0def90f404a1c31333f9b5

Log:
added extra functionality for 5.6 incremental builds only

Changed paths:
  A  client/bin/pecl_build_56.bat
  M  client/bin/pecl_build_next.bat


Diff:
diff --git a/client/bin/pecl_build_56.bat b/client/bin/pecl_build_56.bat
new file mode 100644
index 0000000..f80fffc
--- /dev/null
+++ b/client/bin/pecl_build_56.bat
@@ -0,0 +1,59 @@
+@ECHO OFF
+
+SET BAT_DIR=%~dp0
+
+set yyyy=%date:~6,4%
+set mm=%date:~3,2%
+set dd=%date:~0,2%
+
+set hh=%time:~0,2%
+if %hh% lss 10 (set hh=0%time:~1,1%)
+set nn=%time:~3,2%
+set ss=%time:~6,2%
+set cur_date=%yyyy%%mm%%dd%-%hh%%nn%%ss%
+
+set LOG_FILE=c:\php-sdk\logs\task-pecl-%cur_date%.log
+set RMTOOLS_BASE_DIR=c:\php-sdk\rmtools-client
+
+if "%1"=="" goto :help
+if "%1"=="--help" goto :help
+if "%1"=="-h" goto :help
+if "%1"=="/?" goto :help
+goto :skip_help
+
+:help
+echo ==========================================================
+echo This is the PECL build batch script. You can see the help
+echo output of the underlaying worker below. Note that you HAVE
+echo TO ommit the --config option when running this batch.
+echo ==========================================================
+%BAT_DIR%pecl.bat
+GOTO EXIT_LOCKED
+
+:skip_help
+
+IF EXIST c:\php-sdk\locks\pecl.lock (
+ECHO Pecl build script is already running.
+GOTO EXIT_LOCKED
+)
+
+ECHO running > c:\php-sdk\locks\pecl.lock 
+
+rem Notice the --first and the --last calls marked, that's important
+rem to maintain the state between call for the same package. For instance
+rem if --aggregate-mail is used.
+rem call %BAT_DIR%pecl.bat --config=pecl55_x64 --first %* >> %LOG_FILE% 2<&1
+rem call %BAT_DIR%pecl.bat --config=pecl55_x86 %* >> %LOG_FILE% 2<&1
+rem call %BAT_DIR%pecl.bat --config=pecl54 %* >> %LOG_FILE% 2<&1
+rem call %BAT_DIR%pecl.bat --config=pecl53 --last %* >> %LOG_FILE% 2<&1
+rem
+call %BAT_DIR%pecl.bat --config=pecl56_x86 --first %* >> %LOG_FILE% 2<&1
+call %BAT_DIR%pecl.bat --config=pecl56_x64 --last %* >> %LOG_FILE% 2<&1
+
+echo Done.>> %LOG_FILE%
+
+del c:\php-sdk\locks\pecl.lock >> %LOG_FILE% 2<&1
+
+:EXIT_LOCKED
+echo .
+
diff --git a/client/bin/pecl_build_next.bat b/client/bin/pecl_build_next.bat
index baa2a93..4710a44 100644
--- a/client/bin/pecl_build_next.bat
+++ b/client/bin/pecl_build_next.bat
@@ -37,6 +37,22 @@ for /r %%i in (*) do (
        goto ONLY_ONE
 )
 
+cd c:\pecl-in-pkg-56
+
+for /r %%i in (*) do (
+       call %BAT_DIR%pecl_build_56.bat --upload --aggregate-mail --package=%%i
+       del %%i
+       goto ONLY_ONE
+)
+
+cd c:\pecl-in-pkg-nomail-56
+
+for /r %%i in (*) do (
+       call %BAT_DIR%pecl_build_56.bat --upload --package=%%i
+       del %%i
+       goto ONLY_ONE
+)
+
 :ONLY_ONE
 cd %BAT_DIR%
 echo .


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to