Commit:    16969cbe4fb8dedf14e567c33dae340f85676ee4
Author:    Anatol Belski <[email protected]>         Tue, 12 May 2015 19:46:29 +0200
Parents:   62af00562ae323aad980d2ef049d085643c618d0
Branches:  master pecl_legacy

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

Log:
add pickleweb sync bats

Changed paths:
  A  client/bin/pickle_ctl.bat
  A  client/bin/pickleweb_sync_task.bat


Diff:
diff --git a/client/bin/pickle_ctl.bat b/client/bin/pickle_ctl.bat
new file mode 100644
index 0000000..c7530e9
--- /dev/null
+++ b/client/bin/pickle_ctl.bat
@@ -0,0 +1,24 @@
+@echo off
+
+SET BAT_DIR=%~dp0
+
+set PECL_RSS_CMD=c:\php-sdk\php\php.exe
+
+if "%1"=="" goto :help
+if "%1"=="--help" goto :help
+if "%1"=="-h" goto :help
+if "%1"=="/?" goto :help
+goto :skip_help
+
+:help
+%PECL_RSS_CMD% %BAT_DIR%\..\script\pickle_ctl.php
+GOTO EXIT_LOCKED
+
+:skip_help
+
+
+%PECL_RSS_CMD% %BAT_DIR%\..\script\pickle_ctl.php %*
+
+:EXIT_LOCKED
+echo .
+
diff --git a/client/bin/pickleweb_sync_task.bat 
b/client/bin/pickleweb_sync_task.bat
new file mode 100644
index 0000000..5a90695
--- /dev/null
+++ b/client/bin/pickleweb_sync_task.bat
@@ -0,0 +1,44 @@
+@echo off
+
+SET BAT_DIR=%~dp0
+
+set LOG_FILE=c:\php-sdk\logs\task-pickleweb-sync.log
+
+set PECL_RSS_CMD=c:\php-sdk\php\php.exe -d extension_dir=c:\php-sdk\php\ext -d 
extension=php_openssl.dll -d extension=php_curl.dll -d 
extension=php_sqlite3.dll -d date.timezone=UTC 
%BAT_DIR%\..\script\pickleweb_ctl.php %* >> %LOG_FILE% 2<&1
+
+
+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 RSS task script. You can see the help
+echo output of the underlaying worker below. This script will
+echo fetch the items from the current RSS feed, download and
+echo put them into the build queue. 
+echo ==========================================================
+call %BAT_DIR%pickle_ctl.bat
+GOTO EXIT_LOCKED
+
+:skip_help
+
+IF EXIST c:\php-sdk\locks\pickleweb-sync.lock (
+ECHO Pickleweb sync is already running.
+GOTO EXIT_LOCKED
+)
+
+ECHO running > c:\php-sdk\locks\pickleweb-sync.lock 
+
+
+call %BAT_DIR%pickle_ctl.bat %* >> %LOG_FILE% 2<&1
+
+echo Done.>> %LOG_FILE%
+
+del c:\php-sdk\locks\pickleweb-sync.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

Reply via email to