1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Files
archived-php-src/.github/scripts/windows/find-target-branch.bat
2023-09-03 14:18:41 +02:00

9 lines
273 B
Batchfile

@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.4" (
set BRANCH=master
)