pajoye          Sat Oct 25 16:50:25 2008 UTC

  Added files:                 
    /php-internals-win/script   snapshot_5_2.bat snapshot_5_2_all.bat 
                                snapshot_5_3_all.bat snapshot_5_3_vc9.bat 
                                snapshot_5_3_vc9x64.bat snapshot_6_0.bat 
                                snapshot_6_0_all.bat snapshot_6_0_vc9.bat 
                                snapshot_installer.bat 
                                snapshot_src_download.bat 
  Log:
  - add scripts helper for all active branches
  - add src downloader
    scripts used by the automatic tasks for the snaps
  
http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_5_2.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_5_2.bat
+++ php-internals-win/script/snapshot_5_2.bat
REM $Id: snapshot_5_2.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
SET PHP_SDK_SCRIPT_PATH=%~dp0

REM change the drive
%~d0

CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat


IF "%1" == "" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--with-snapshot-template=%PHP_SDK_PATH%\snap_5_2\vc6\x86\template  
--with-php-build=%PHP_SDK_PATH%\snap_5_2\vc6\x86\php_build 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
)

IF "%1" == "ts" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--with-snapshot-template=%PHP_SDK_PATH%\snap_5_2\vc6\x86\template  
--with-php-build=%PHP_SDK_PATH%\snap_5_2\vc6\x86\php_build 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
)

IF "%1" == "nts" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--disable-zts --disable-isapi 
--with-snapshot-template=%PHP_SDK_PATH%\snap_5_2\vc6\x86\template  
--with-php-build=%PHP_SDK_PATH%\snap_5_2\vc6\x86\php_build 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
)

SET PHP_MODULE=php5

IF "%2" == "" (
        CD %PHP_SDK_PATH%\snap_5_2\sources
        CALL snapshot_src_download.bat 5.2
)

CD %PHP_SDK_PATH%\snap_5_2\vc6\x86
CALL snapshot.bat 6 5.2 snap52_vc6 
%PHP_SDK_PATH%\snap_5_2\sources\php-5.2-src-latest.zip %4

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_5_2_all.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_5_2_all.bat
+++ php-internals-win/script/snapshot_5_2_all.bat
REM $Id: snapshot_5_2_all.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
SET PHP_SDK_SCRIPT_PATH=%~dp0

REM change the drive
%~d0

CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat

CD %PHP_SDK_PATH%\snap_5_2\sources
CALL snapshot_src_download.bat 5.2

CMD /C snapshot_5_2.bat ts nodownload no msi
CMD /C snapshot_5_2.bat nts nodownload no msi

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_5_3_all.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_5_3_all.bat
+++ php-internals-win/script/snapshot_5_3_all.bat
REM $Id: snapshot_5_3_all.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
SET PHP_SDK_SCRIPT_PATH=%~dp0

REM change the drive
%~d0

CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat

CD %PHP_SDK_PATH%\snap_5_3\sources
CALL snapshot_src_download.bat 5.3

CMD /C snapshot_5_3_vc9.bat ts nodownload no msi
CMD /C snapshot_5_3_vc9.bat nts nodownload no msi
CMD /C snapshot_5_3.bat ts nodownload no msi
CMD /C snapshot_5_3.bat nts nodownload no msi

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_5_3_vc9.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_5_3_vc9.bat
+++ php-internals-win/script/snapshot_5_3_vc9.bat
REM $Id: snapshot_5_3_vc9.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
SET PHP_SDK_SCRIPT_PATH=%~dp0

REM change the drive
%~d0

CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat

CD %PHP_SDK_PATH%\php_5_3\vc9\x86

IF "%1" == "" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)
IF "%1" == "ts" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)

IF "%1" == "nts" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--disable-zts --disable-isapi 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)

SET PHP_MODULE=php5

IF "%2" == "" (
        CD %PHP_SDK_PATH%\snap_5_3\sources
        CALL snapshot_src_download.bat 5.3
)

CD %PHP_SDK_PATH%\snap_5_3\vc9\x86
CALL snapshot.bat 9 5.3 snap53_vc9 
%PHP_SDK_PATH%\snap_5_3\sources\php-5.3-src-latest.zip  %4

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_5_3_vc9x64.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_5_3_vc9x64.bat
+++ php-internals-win/script/snapshot_5_3_vc9x64.bat
REM $Id: snapshot_5_3_vc9x64.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
REM %VC9_SHELL%

REM CD "C:\Program Files\Microsoft SDKs\Windows\v6.1\"
REM CALL "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.Cmd" /x86 /xp 
/release

SET PHP_SDK_SCRIPT_PATH=%~dp0

REM change the drive
%~d0

CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat

SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
SET PHP_MODULE=php5

CD %PHP_SDK_PATH%\snap_5_3\sources
CALL snapshot_src_download.bat 5.3

REM XP is the minimum version we support
REM setenv /x86 /xp /release

CD %PHP_SDK_PATH%\snap_5_3\vc9\x64
CALL snapshot.bat 9x64 PHP_5_3 snap53_vc9x64 
%PHP_SDK_PATH%\snap_5_3\sources\php-5.3-src-latest.zip


http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_6_0.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_6_0.bat
+++ php-internals-win/script/snapshot_6_0.bat
REM $Id: snapshot_6_0.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
SET PHP_SDK_SCRIPT_PATH=%~dp0

REM change the drive
%~d0

CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat

SET PHP_MODULE=HEAD

IF "%1" == "" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--without-static-icu 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)
IF "%1" == "ts" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--without-static-icu  
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)

IF "%1" == "nts" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--without-static-icu  
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)

SET OLD_PATH=%PATH%
SET PATH=%PATH%;%PHP_SDK_PATH%\snap_6_0\vc6\x86\deps\bin

IF "%2" == "" (
        CD %PHP_SDK_PATH%\snap_6_0\sources
        CALL snapshot_src_download.bat 6.0
)

CD %PHP_SDK_PATH%\snap_6_0\vc6\x86
CALL snapshot.bat 6 6.0 snap60_vc6 
%PHP_SDK_PATH%\snap_6_0\sources\php-6.0-src-latest.zip %4

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_6_0_all.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_6_0_all.bat
+++ php-internals-win/script/snapshot_6_0_all.bat
REM $Id: snapshot_6_0_all.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
SET PHP_SDK_SCRIPT_PATH=%~dp0

REM change the drive
%~d0

CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat

CD %PHP_SDK_PATH%\snap_6_0\sources
CALL snapshot_src_download.bat 6.0
 
CMD /C snapshot_6_0_vc9.bat ts nodownload no msi
CMD /C snapshot_6_0.bat ts nodownload no msi
CMD /C snapshot_6_0_vc9.bat nts nodownload no msi
CMD /C snapshot_6_0.bat nts nodownload no msi
http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_6_0_vc9.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_6_0_vc9.bat
+++ php-internals-win/script/snapshot_6_0_vc9.bat
REM $Id: snapshot_6_0_vc9.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
SET PHP_SDK_SCRIPT_PATH=%~dp0

REM change the drive
%~d0

CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat

SET PHP_MODULE=HEAD

IF "%1" == "" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--without-static-icu  
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)
IF "%1" == "ts" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--without-static-icu  
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)

IF "%1" == "nts" (
        SET CONFIGURE_ARGS=--enable-snapshot-build --enable-debug-pack 
--without-static-icu 
--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared 
--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared
)

SET OLD_PATH=%PATH%
SET PATH=%PATH%;%PHP_SDK_PATH%\snap_6_0\vc9\x86\deps\bin

IF "%2" == "" (
        CD %PHP_SDK_PATH%\snap_6_0\sources
        CALL snapshot_src_download.bat 6.0
)

CD %PHP_SDK_PATH%\snap_6_0\vc9\x86
CALL snapshot.bat 9 6.0 snap60_vc9 
%PHP_SDK_PATH%\snap_6_0\sources\php-6.0-src-latest.zip %4

http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_installer.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_installer.bat
+++ php-internals-win/script/snapshot_installer.bat
REM $Id: snapshot_installer.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@echo off
goto old
IF "%1"=="" GOTO HELP
IF "%2"=="" GOTO HELP

IF NOT EXIST %1% (
        echo ^<%1^> does not exist
        GOTO EXIT
)

IF NOT EXIST %2% (
        echo ^<%2^> does not exist
        GOTO EXIT
)

IF "%3%"=="VC9" (
        if "%4%"== "x64"  set includevc9msm="x86_x64"
        if "%4%"=="x86" set includevc9msm="x86"
        if "%4%"=="" set includevc9msm="x86"
)

:old
SET PHP_SDK_SCRIPT_PATH=%~dp0
SET START=%CD%
REM change the drive
%~d0
echo %PHP_SDK_SCRIPT_PATH%
CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat

SET PHP_INSTALLER_PATH=%PHP_SDK_SCRIPT_PATH%..\win-installer

SET A=%~n5
SET MSI_PATH=%A%.msi
cd %PHP_INSTALLER_PATH%
IF EXIST Files RD /Q /S Files
echo %5
unzip -o -qq -d Files %5

SET php_exe=Files\php.exe

copy %PHP_SDK_SCRIPT_PATH%..\template\php_manual_en.chm Files\

echo generating ... %MSI_PATH%

set phpver=%1
set phpver=%phpver:~0,3%
set phpver=%phpver:.=%

echo Building ExtensionsFeatures.wxs
copy ExtensionsFeatures%phpver%.wxs ExtensionsFeatures.wxs

set suffix=
set extrants=
set extrasnaps=
set buildtype="VC6-x86"
set includevc9msm=

if (%2)==() goto build
if %2==nts set extrants="nts-"
if %2==nts set suffix=NTS
if %2==VC9 set buildtype="VC9-x86"
if %2==VC9 set includeVC9msm="x86"
if %2==x64 set buildtype="VC9-x64"
if %2==x64 set includeVC9msm="x86_x64"
if %2==snapshot set extrasnaps="-latest"

if (%3)==() goto build
if %3==nts set extrants="nts-"
if %3==nts set suffix=NTS
if %3==VC9 set buildtype="VC9-x86"
if %3==VC9 set includeVC9msm="x86"
if %3==x64 set buildtype="VC9-x64"
if %3==x64 set includeVC9msm="x86_x64"
if %3==snapshot set extrasnaps="-latest"

if (%4)==() goto build
if %4==nts set extrants="nts-"
if %4==nts set suffix=NTS
if %4==VC9 set buildtype="VC9-x86"
if %4==VC9 set includeVC9msm="x86"
if %4==x64 set buildtype="VC9-x64"
if %4==x64 set includeVC9msm="x86_x64"
if %4==snapshot set extrasnaps="-latest"
echo WebServerConfig%phpver%%suffix%.wxs ****
echo %phpver% %suffix%

:build
set msiname="%MSI_PATH%"
echo ************************ %msiname%
echo Building ExtensionsComponents.wxs
%php_exe% GenExtensionsComponents.wxs.php "%phpver%"

echo Building PHPInstaller%1.wxs
%php_exe% GenPHPInstaller.wxs.php "PHPInstallerBase%phpver%%suffix%.wxs" "%1" 
"%includevc9msm%"

echo Building WebServerConfig%1.wxs
copy WebServerConfig%phpver%%suffix%.wxs WebServerConfig%1.wxs

echo Compiling UI....
Wix\candle.exe -out PHPInstallerCommon.wixobj PHPInstallerCommon%suffix%.wxs

echo Building UI....
Wix\lit.exe -out PHPInstallerCommon.wixlib PHPInstallerCommon.wixobj 

echo Compiling Installer....
Wix\candle.exe ExtensionsComponents.wxs ExtensionsFeaturesBuild.wxs 
WebServerConfig%1.wxs PHPInstaller%1.wxs 

echo Linking Installer....
Wix\light.exe -out "%msiname%" ExtensionsComponents.wixobj 
ExtensionsFeaturesBuild.wixobj WebServerConfig%1.wixobj PHPInstaller%1.wixobj 
PHPInstallerCommon.wixlib -loc WixUI_en-us.wxl
copy %msiname% %~dp5

GOTO EXIT
:help
ECHO snapshot_installer ^<php dist files^> ^<destination directory^>
echo                    create the MSI file using the php version, architecture 
and compiler information
GOTO EXIT

:EXIT
CD %START%
http://cvs.php.net/viewvc.cgi/php-internals-win/script/snapshot_src_download.bat?view=markup&rev=1.1
Index: php-internals-win/script/snapshot_src_download.bat
+++ php-internals-win/script/snapshot_src_download.bat
REM $Id: snapshot_src_download.bat,v 1.1 2008/10/25 16:50:25 pajoye Exp $

@ECHO OFF
SET PHP_SDK_SCRIPT_PATH=%~dp0
CALL %PHP_SDK_SCRIPT_PATH%\phpsdk_setvars.bat
ECHO %PHP_SDK_SCRIPT_PATH%

REM change the drive
%~d0

IF "%1"=="5.2" GOTO DOWNLOAD
IF "%1"=="5.3" GOTO DOWNLOAD
IF "%1"=="6.0" GOTO DOWNLOAD

GOTO USAGE

:DOWNLOAD
SET BRANCH=%1
SET PHP_ARCHIVE_FILENAME=php-%BRANCH%-src-latest.zip

IF EXIST %PHP_ARCHIVE_FILENAME% DEL %PHP_ARCHIVE_FILENAME%
wget http://windows.php.net/downloads/snaps/php-%BRANCH%/%PHP_ARCHIVE_FILENAME%
REM unzip -o -qq %PHP_ARCHIVE_FILENAME%

REM Take the last one
FOR /D %%A IN (php-%BRANCH%-src-*) DO (
        SET DIRNAME=%%A
)
ECHO Downloaded: %DIRNAME%

:DONE
GOTO EXIT

:USAGE
echo Usage %~n0 ^<branch name^> (5.2 5.3 or 6.0)

:EXIT
SET A=
SET N=
SET BRANCH=
SET PHP_ARCHIVE_FILENAME=
SET DIRNAME=
SET cnt=
-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to