php-sdk-binary-tools/bin/phpsdk_setvars.bat

29 строки
695 B
Batchfile
Исходник Постоянная ссылка Обычный вид История

2016-10-23 22:36:33 +03:00
@echo off
cmd /c "exit /b 0"
2016-10-23 22:36:33 +03:00
rem Add necessary dirs to the path
set PHP_SDK_BIN_PATH=%~dp0
rem remove trailing slash
set PHP_SDK_BIN_PATH=%PHP_SDK_BIN_PATH:~0,-1%
2016-11-16 21:44:02 +03:00
for %%a in ("%PHP_SDK_BIN_PATH%") do set PHP_SDK_ROOT_PATH=%%~dpa
2016-10-23 22:36:33 +03:00
rem remove trailing slash
2016-11-16 21:44:02 +03:00
set PHP_SDK_ROOT_PATH=%PHP_SDK_ROOT_PATH:~0,-1%
2016-10-23 22:36:33 +03:00
2016-11-16 21:44:02 +03:00
set PHP_SDK_MSYS2_PATH=%PHP_SDK_ROOT_PATH%\msys2\usr\bin
2016-10-23 22:36:33 +03:00
set PHP_SDK_PHP_CMD=%PHP_SDK_BIN_PATH%\php\do_php.bat
set PATH=%PHP_SDK_BIN_PATH%;%PHP_SDK_MSYS2_PATH%;%PATH%
2019-03-11 18:30:07 +03:00
for /f "tokens=1* delims=: " %%a in ('link /?') do (
set PHP_SDK_VC_TOOLSET_VER=%%b
goto break0
)
:break0
set PHP_SDK_VC_TOOLSET_VER=%PHP_SDK_VC_TOOLSET_VER:~-13%
exit /b %errorlevel%
2016-10-23 22:36:33 +03:00