dis-bench / src /php /php-src /.github /scripts /windows /find-target-branch.bat
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
273 Bytes
@echo off
for /f "usebackq tokens=3" %%i in (`findstr PHP_MAJOR_VERSION main\php_version.h`) do set BRANCH=%%i
for /f "usebackq tokens=3" %%i in (`findstr PHP_MINOR_VERSION main\php_version.h`) do set BRANCH=%BRANCH%.%%i
if /i "%BRANCH%" equ "8.5" (
set BRANCH=master
)