pajoye          Thu Aug  7 17:04:33 2008 UTC

  Added files:                 
    /php-internals-win/script   snap_delete_old.sh snapshot.bat 
                                conf_tools.bat snapshot_5_3.bat 
  Log:
  - new snap script (adieu cygwin)
  

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snap_delete_old.sh?view=markup&rev=1.1
Index: php-internals-win/script/snap_delete_old.sh
+++ php-internals-win/script/snap_delete_old.sh
SSH_DIR="/local/sites/snaps.php.net/www/win32"

cd $SSH_DIR
for i in "php$VER-win32-2*.zip" "php$VER-dbgpack-win32-2*.zip" 
"pecl$VER-win32-2*.zip" "php$VER-win32-installer-2*.msi"; do
        list=`ls -r $i 2>/dev/null`
        cmd="cd $SSH_DIR"
        count=0
        for j in $list; do
                let count=count+1
                if [ "$count" -gt "5" ]; then
                        cmd="rm -f $j"
                fi
        done
done

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot.bat
+++ php-internals-win/script/snapshot.bat
@ECHO off
REM Configuration 
CALL %PHP_SDK_PATH%\script\conf_tools.bat

SET START=%CD%

IF "%1"=="" GOTO HELP
IF "%2"=="" GOTO HELP
IF "%3"=="" GOTO HELP
SET VC=%1
SET BRANCH=%2
SET DEST=%3

SET CUR_PATH=%PATH%

for /F "tokens=1-4 delims=:., " %%a in ('time/T') do set _TIME=%%a%%b%%c
for /F "tokens=2-5 delims=:.,/ " %%a in ('date/T') do set _DATE=%%a%%b%%c
SET SNAPDATETIME=%_DATE%%_TIME%

IF EXIST %3 rmdir /s /q %3

IF "%VC%"=="6" GOTO CONFIG_VC6
IF "%VC%"=="9" GOTO CONFIG_VC9
echo Invalid VC Version
GOTO EXIT

:CONFIG_VC6
SET INCLUDE=%VC6_INCLUDE%
SET LIB=%VC6_LIB%
SET PATH=%VC6_PATH%;%PATH%
GOTO CVS

:CONFIG_VC9
SET INCLUDE=%VC9_INCLUDE%
SET LIB=%VC9_LIB%
SET PATH=%VC9_PATH%;%PATH%

:CVS

cvs -d :pserver:[EMAIL PROTECTED]:/repository -z3 checkout -r %BRANCH% -d 
%DEST% php5 >> %START%\cvs.log 2<&1

IF EXIST %DEST% GOTO DEST_EXISTS
ECHO CVS ERROR 
GOTO EXIT
:DEST_EXISTS

cd %DEST%

call buildconf.bat >> %START%\buildconf.log 2<&1
call configure.bat --enable-snapshot-build --enable-debug-pack 
--disable-fileinfo --with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared > 
%START%\compile.log 2<&1

nmake snap >> %START%\compile.log 2<&1

:TRANSFERT
FOR /F "tokens=*" %%A IN ('Release_TS\\php.exe -r "echo 
substr(phpversion(),0,3);"') DO SET _PHPVERSION_SHORT=%%A
FOR /F "tokens=*" %%A IN ('Release_TS\\php.exe -r "echo phpversion();"') DO SET 
_PHPVERSION_STRING=%%A
FOR /F "tokens=*" %%A IN ('Release_TS\\php.exe -r "echo date('YmdGi');"') DO 
SET SNAPDATETIME=%%A

SET PHP_ZIP_FILE=Release_TS\php-%_PHPVERSION_STRING%-Win32.zip
copy %PHP_ZIP_FILE% %START%\php%_PHPVERSION_SHORT%-win32-%SNAPDATETIME%.zip

SET PHPDEBUG_ZIP_FILE=Release_TS\php-debug-pack-%_PHPVERSION_STRING%-Win32.zip
copy %PHP_ZIP_FILE% 
%START%\php%_PHPVERSION_SHORT%-dbgpack-win32-%SNAPDATETIME%.zip

REM Using -i now
REM "%PUTTYBASE%pageant.exe" %PHP_SDK_PATH%keys\pierre_droppederon_prv.ppk
"%PUTTYBASE%plink.exe" -batch -l %REMOTE_USER% -m 
%PHP_SDK_PATH%script\snap_delete_old.sh snaps.php.net
"%PUTTYBASE%pscp.exe" -batch -i %PHP_SDK_PATH%keys\pierre_droppederon_prv.ppk 
-l %REMOTE_USER% 
%START%\php%_PHPVERSION_SHORT%-dbgpack-win32-%SNAPDATETIME%.zip 
%SSH_URL%:%REMOTE_PATH%
"%PUTTYBASE%pscp.exe" -batch -i %PHP_SDK_PATH%keys\pierre_droppederon_prv.ppk 
-l %REMOTE_USER% %START%\php%_PHPVERSION_SHORT%-win32-%SNAPDATETIME%.zip 
%SSH_URL%:%REMOTE_PATH%
"%PUTTYBASE%pscp.exe" -batch -i %PHP_SDK_PATH%keys\pierre_droppederon_prv.ppk 
-l %REMOTE_USER% %START%\compile.log 
%SSH_URL%:%REMOTE_PATH%/compile-%_PHPVERSION_SHORT%.log
"%PUTTYBASE%pscp.exe" -batch -i %PHP_SDK_PATH%keys\pierre_droppederon_prv.ppk 
-l %REMOTE_USER% %START%\cvs.log 
%SSH_URL%:%REMOTE_PATH%/cvs-%_PHPVERSION_SHORT%.log
"%PUTTYBASE%pscp.exe" -batch -i %PHP_SDK_PATH%keys\pierre_droppederon_prv.ppk 
-l %REMOTE_USER% %START%\buildconf.log 
%SSH_URL%:%REMOTE_PATH%/buildconf-%_PHPVERSION_SHORT%.log

GOTO EXIT

:HELP
ECHO snapshot ^<VC version^> ^<branch/tag^> ^<destination^>

:EXIT
cd %START%

http://cvs.php.net/viewvc.cgi/php-internals-win/script/conf_tools.bat?view=markup&rev=1.1
Index: php-internals-win/script/conf_tools.bat
+++ php-internals-win/script/conf_tools.bat
@ECHO OFF
SET VC6_INCLUDE=C:\Program Files (x86)\Microsoft 
SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE
SET VC6_LIB=C:\Program Files (x86)\Microsoft 
SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB
SET VC6_PATH=c:\Program Files (x86)\Microsoft SDK\Bin;c:\Program Files 
(x86)\Microsoft 
SDK\Bin\WinNT;c:\PROGRA~2\MICROS~2\Common\msdev98\BIN;c:\PROGRA~2\MICROS~2\VC98\BIN;c:\PROGRA~2\MICROS~2\Common\TOOLS\WINNT;c:\PROGRA~2\MICROS~2\Common/TOOLS

SET VC9_INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\INCLUDE;C:\Program Files\\Microsoft 
SDKs\Windows\v6.0A\include;C:\Program Files (x86)\Microsoft Visual Studio .NET 
2003\SDK\v1.1\include\
SET VC9_LIB=C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\ATLMFC\LIB;C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\LIB;C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib;C:\Program Files 
(x86)\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
SET VC9_PATH=C:\Program Files (x86)\Microsoft Visual Studio 
9.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio 
9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program
 Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program 
Files\\Microsoft 
SDKs\Windows\v6.0A\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

SET PUTTYBASE=C:\Program Files (x86)\PUTTY\
SET REMOTE_USER=edink
SET [EMAIL PROTECTED]
SET REMOTE_PATH=/local/sites/snaps.php.net/www/win32

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_5_3.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_5_3.bat
+++ php-internals-win/script/snapshot_5_3.bat
@ECHO OFF
CALL C:\php-sdk\bin\phpsdk_setvars.bat

cd %PHP_SDK_PATH%\vc6\x86

CALL snapshot.bat 6 PHP_5_3 snap53



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

Reply via email to