2013-05-15 13:45:14 +04:00
|
|
|
@echo off
|
|
|
|
IF "%1" EQU "" GOTO Help
|
|
|
|
|
|
|
|
IF "%2" NEQ "" SET _=%2\%1
|
|
|
|
IF "%2" EQU "" SET _=%CD%\%1
|
|
|
|
|
2016-10-26 14:40:14 +03:00
|
|
|
rem if we're in the starter script shell, create the only struct that corresponds to the current env
|
|
|
|
rem otherwise - retain the old behavior, create structs for all the known build combinations and don't cd
|
2014-11-09 21:38:06 +03:00
|
|
|
|
2017-08-21 11:49:42 +03:00
|
|
|
cmd /c "exit /b 0"
|
|
|
|
|
2016-10-26 14:40:14 +03:00
|
|
|
if "%PHP_SDK_ARCH%" NEQ "" (
|
2019-03-30 12:36:04 +03:00
|
|
|
if "%PHP_SDK_VS%" NEQ "" (
|
|
|
|
MD %_%\%PHP_SDK_VS%\%PHP_SDK_ARCH%\deps\bin
|
|
|
|
MD %_%\%PHP_SDK_VS%\%PHP_SDK_ARCH%\deps\lib
|
|
|
|
MD %_%\%PHP_SDK_VS%\%PHP_SDK_ARCH%\deps\include
|
|
|
|
cd %_%\%PHP_SDK_VS%\%PHP_SDK_ARCH%
|
2016-10-26 14:40:14 +03:00
|
|
|
goto exit
|
|
|
|
)
|
|
|
|
goto create_all
|
|
|
|
) else (
|
|
|
|
:create_all
|
|
|
|
MD %_%\vc14\x86\deps\bin
|
|
|
|
MD %_%\vc14\x86\deps\lib
|
|
|
|
MD %_%\vc14\x86\deps\include
|
|
|
|
MD %_%\vc14\x64\deps\bin
|
|
|
|
MD %_%\vc14\x64\deps\lib
|
|
|
|
MD %_%\vc14\x64\deps\include
|
|
|
|
)
|
2014-11-09 21:38:06 +03:00
|
|
|
|
2016-10-28 03:18:57 +03:00
|
|
|
set _=
|
|
|
|
|
2013-05-15 13:45:14 +04:00
|
|
|
GOTO EXIT
|
|
|
|
|
|
|
|
:help
|
2016-09-28 02:24:53 +03:00
|
|
|
echo phpsdk_buildtree ^<nameofthetree^> [PATH]
|
2013-05-15 13:45:14 +04:00
|
|
|
echo Create the common directory structure used by the PHP SDK
|
|
|
|
|
|
|
|
:EXIT
|
2017-08-21 11:49:42 +03:00
|
|
|
exit /b %errorlevel%
|
|
|
|
|