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

22 строки
521 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%
exit /b %errorlevel%
2016-10-23 22:36:33 +03:00