diff --git a/.gitattributes b/.gitattributes index 86797917210fa..f0ab159a9d039 100644 --- a/.gitattributes +++ b/.gitattributes @@ -29,5 +29,9 @@ # The OSS fuzz files are binary /ext/date/tests/ossfuzz*.txt binary +# "Win only" text files that should have CRLF EOL +*.bat -text eol=crlf +*.ps1 -text eol=crlf + # Vendored libraries /ext/dom/lexbor/lexbor linguist-vendored diff --git a/win32/build/phpize.bat b/win32/build/phpize.bat index 266473325899f..a23ac382ee15d 100644 --- a/win32/build/phpize.bat +++ b/win32/build/phpize.bat @@ -1,10 +1,10 @@ -@echo off -SET PHP_BUILDCONF_PATH=%~dp0 -cscript /nologo /e:jscript %PHP_BUILDCONF_PATH%\script\phpize.js %* -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= +@echo off +SET PHP_BUILDCONF_PATH=%~dp0 +cscript /nologo /e:jscript %PHP_BUILDCONF_PATH%\script\phpize.js %* +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=