Commit:    20ceb6c93eec0c379c1033d9fc6090dad2f172f2
Author:    Anatol Belski <[email protected]>         Wed, 6 May 2015 15:16:57 +0200
Parents:   e6041b8f4ec7afb2e86057a8baa94d3223ba138f
Branches:  master pecl_legacy

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

Log:
more batches for pickle

Changed paths:
  A  client/bin/pickle_build_all.bat
  A  client/bin/pickle_build_next.bat


Diff:
diff --git a/client/bin/pickle_build_all.bat b/client/bin/pickle_build_all.bat
new file mode 100644
index 0000000..7e17178
--- /dev/null
+++ b/client/bin/pickle_build_all.bat
@@ -0,0 +1,57 @@
+@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-pickle-%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 pickle 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%pickle.bat
+GOTO EXIT_LOCKED
+
+:skip_help
+
+IF EXIST c:\php-sdk\locks\pickle.lock (
+ECHO pickle build script is already running.
+GOTO EXIT_LOCKED
+)
+
+ECHO running > c:\php-sdk\locks\pickle.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.
+call %BAT_DIR%pickle.bat --config=pickle70 --first %* >> %LOG_FILE% 2<&1
+call %BAT_DIR%pickle.bat --config=pickle56 %* >> %LOG_FILE% 2<&1
+call %BAT_DIR%pickle.bat --config=pickle55 %* >> %LOG_FILE% 2<&1
+call %BAT_DIR%pickle.bat --config=pickle54 %* >> %LOG_FILE% 2<&1
+call %BAT_DIR%pickle.bat --config=pickle53 --last %* >> %LOG_FILE% 2<&1
+
+echo Done.>> %LOG_FILE%
+
+del c:\php-sdk\locks\pickle.lock >> %LOG_FILE% 2<&1
+
+:EXIT_LOCKED
+echo .
+
diff --git a/client/bin/pickle_build_next.bat b/client/bin/pickle_build_next.bat
new file mode 100644
index 0000000..ec70c25
--- /dev/null
+++ b/client/bin/pickle_build_next.bat
@@ -0,0 +1,46 @@
+@ECHO OFF
+
+rem pick the next pickle pkg and pass to pickle_build_all.bat 
+rem first try releases, if there aren't any, look for snaps
+
+SET BAT_DIR=%~dp0
+
+
+rem XXX besides the directories with tarballs, what comes is to implement the 
pickle.com communication
+
+cd c:\pickle-in-pkg
+
+for /r %%i in (*) do (
+       call %BAT_DIR%pickle_build_all.bat --upload --aggregate-mail 
--package=%%i
+       del %%i
+       goto ONLY_ONE
+)
+
+cd c:\pickle-in-pkg-nomail
+
+for /r %%i in (*) do (
+       call %BAT_DIR%pickle_build_all.bat --upload --package=%%i
+       del %%i
+       goto ONLY_ONE
+)
+
+cd c:\pickle-in-snap
+
+for /r %%i in (*) do (
+       call %BAT_DIR%pickle_build_all.bat --upload --is-snap --aggregate-mail 
--package=%%i
+       del %%i
+       goto ONLY_ONE
+)
+
+cd c:\pickle-in-snap-nomail
+
+for /r %%i in (*) do (
+       call %BAT_DIR%pickle_build_all.bat --upload --is-snap --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