summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-08-18 11:54:56 +0200
committerAnatol Belski <ab@php.net>2017-08-18 11:54:56 +0200
commit065551bc9c94eb5842f0ccaf654d8e187f6485fd (patch)
treea3b09a6dbe80ac8d4ac260e56089538f603ae8e1
parente7f4e671550b522d9830ce602371388dd6a249c7 (diff)
downloadphp-git-065551bc9c94eb5842f0ccaf654d8e187f6485fd.tar.gz
Fix phpize exit status
Configure and others are generated, not copied. Seems there's yet much more to do wrt exit status catching.
-rw-r--r--win32/build/phpize.bat9
1 files changed, 7 insertions, 2 deletions
diff --git a/win32/build/phpize.bat b/win32/build/phpize.bat
index c8840d3544..794b9cb710 100644
--- a/win32/build/phpize.bat
+++ b/win32/build/phpize.bat
@@ -1,6 +1,11 @@
@echo off
SET PHP_BUILDCONF_PATH=%~dp0
cscript /nologo %PHP_BUILDCONF_PATH%\script\phpize.js %*
-copy %PHP_BUILDCONF_PATH%\win32\build\configure.bat %PHP_BUILDCONF_PATH% > nul
-IF NOT EXIST %PHP_BUILDCONF_PATH% (echo Error generating configure script, configure script was not copied) ELSE (echo Now run 'configure --help')
+IF NOT EXIST configure.bat (
+ echo Error generating configure script, configure script was not copied
+ exit /b 3
+) ELSE (
+ echo Now run 'configure --help'
+)
SET PHP_BUILDCONF_PATH=
+