Commit: 2e5a7d7d3ccd1a2b13df906560246f8c27efd20b Author: Anatol Belski <[email protected]> Wed, 28 Jan 2015 19:18:55 +0100 Parents: 3cd441f7309bc2f377766988cd6a5782abceb784 Branches: master pecl_legacy
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=2e5a7d7d3ccd1a2b13df906560246f8c27efd20b Log: added 7.0 snap script Changed paths: A client/bin/pecl_snap_70.bat Diff: diff --git a/client/bin/pecl_snap_70.bat b/client/bin/pecl_snap_70.bat new file mode 100644 index 0000000..070fe42 --- /dev/null +++ b/client/bin/pecl_snap_70.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=pecl70_x86 --first %* >> %LOG_FILE% 2<&1 +call %BAT_DIR%pecl.bat --config=pecl70_x64 --last %* >> %LOG_FILE% 2<&1 + +echo Done.>> %LOG_FILE% + +del c:\php-sdk\locks\pecl.lock >> %LOG_FILE% 2<&1 + +:EXIT_LOCKED +echo . + -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
