Commit Graph

7 Commits

Author SHA1 Message Date
Deus Kane
3046e35718 Fix #79146: cscript can fail to run on some systems
In the buildconf and configure batch files, Windows' cscript utility was being
run without the /e:jscript flag. This works on systems that have not had the
default .js file association changed, but if .js has been re-associated to
(say) an IDE, the batch files fail with the error message:

Input Error: There is no script engine for file extension ".js".
2020-01-21 11:53:11 +01:00
Peter Kokot
1c850bfcca Sync leading and final newlines in source code files
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:55:24 +02:00
Kalle Sommer Nielsen
be8d3a6ebe Check if configure script was copied, and output an error if it wasn't 2009-01-02 12:16:42 +00:00
Kalle Sommer Nielsen
0383c01867 Redirect the "1 file(s) copied" message to nul 2009-01-02 05:50:51 +00:00
Pierre Joye
b2677b4838 - buildconf accepts arguments (pecl dir for ex.)
- copy configure.bat
2008-12-08 22:41:54 +00:00
Johannes Schlüter
046b1769c1 - pass parameters to buildconf.bat over to buildconf.js (#43281)
[DOC] install.windows.building.php currently reads like "e.g. cscript /nologo
  win32/build/buildconf.js --add-modules-dir=../php-gtk2 [...]"  that
  might be changed to "buildconf.bat --add-modules-dir=../php-gtk2 [...]"
2007-11-14 01:42:01 +00:00
Wez Furlong
05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00