Skip to content

Commit 4f23140

Browse files
committed
Fix nts check
1 parent 103b4c6 commit 4f23140

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

build_scripts/php-fb-build.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if "%pfb_cpp_vers%" == "" (
2323
exit 1
2424
)
2525

26-
if "%pfb_ts%" gtr "0" (
26+
if "%pfb_ts%" == "1" (
2727
set pfb_ts=1
2828
) else (
2929
set pfb_ts=0
@@ -57,7 +57,7 @@ if "%pfb_arch%" == "x86" (
5757
set build_root=%php_root%x64\
5858
)
5959

60-
if "%pfb_ts%" gtr "0" (
60+
if %pfb_ts% equ 1 (
6161
set build_root=%build_root%Release_TS\
6262
) else (
6363
set build_root=%build_root%Release\

build_scripts/php-fb-config.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ set USE_GIT_HASH=0
1717
for /f "tokens=3" %%i in ('findstr /b /c:"#define PHP_INTERBASE_VER_MAJOR" %~dp0..\php_interbase.h') do set VER_MAJOR=%%i
1818
for /f "tokens=3" %%i in ('findstr /b /c:"#define PHP_INTERBASE_VER_MINOR" %~dp0..\php_interbase.h') do set VER_MINOR=%%i
1919
for /f "tokens=3" %%i in ('findstr /b /c:"#define PHP_INTERBASE_VER_REV" %~dp0..\php_interbase.h') do set VER_REV=%%i
20-
set PFB_VERS=%VER_MAJOR%.%VER_MINOR%.%VER_REV%-beta
20+
set PFB_VERS=%VER_MAJOR%.%VER_MINOR%.%VER_REV%-RC0
2121

22-
if "%USE_GIT_HASH%" gtr "0" (
22+
if %USE_GIT_HASH% equ 1 (
2323
for /f %%i in ('git -C %~dp0..\ rev-parse --short HEAD') do set PFB_VERS=%PFB_VERS%-%%i
2424
)

build_scripts/php-fb-sdk-build.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ exit /B
3232

3333
set build_msg=Building PHP-%pfb_php_vers%
3434

35-
if "%pfb_ts%" gtr "0" (
36-
set build_msg=%build_msg% non-TS
37-
set extra_args=--disable-zts
38-
) else (
35+
if %pfb_ts% equ 1 (
3936
set build_msg=%build_msg% TS
4037
set extra_args=
38+
) else (
39+
set build_msg=%build_msg% non-TS
40+
set extra_args=--disable-zts
4141
)
4242

4343
if "%pfb_arch%" == "x86" (

0 commit comments

Comments
 (0)