Skip to content

Commit 065551b

Browse files
committed
Fix phpize exit status
Configure and others are generated, not copied. Seems there's yet much more to do wrt exit status catching.
1 parent e7f4e67 commit 065551b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

win32/build/phpize.bat

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
@echo off
22
SET PHP_BUILDCONF_PATH=%~dp0
33
cscript /nologo %PHP_BUILDCONF_PATH%\script\phpize.js %*
4-
copy %PHP_BUILDCONF_PATH%\win32\build\configure.bat %PHP_BUILDCONF_PATH% > nul
5-
IF NOT EXIST %PHP_BUILDCONF_PATH% (echo Error generating configure script, configure script was not copied) ELSE (echo Now run 'configure --help')
4+
IF NOT EXIST configure.bat (
5+
echo Error generating configure script, configure script was not copied
6+
exit /b 3
7+
) ELSE (
8+
echo Now run 'configure --help'
9+
)
610
SET PHP_BUILDCONF_PATH=
11+

0 commit comments

Comments
 (0)