Commit Graph

10 Commits

Author SHA1 Message Date
Gabriel Caruso
f2b5ac7963
[ci skip] Fix typo 2018-07-29 13:48:35 -03:00
Hongbo
a76661a4a2 fix ext_skel continue
"continue" inside switch is ambiguous, should be "continue 2".
2018-07-18 20:49:12 +02:00
Peter Kokot
2788ab9fa6 Enhance the ext_skel.php script file
- File is now executable
- Shebang added on top
- Normal UTF-8 encoding instead of UTF-8 with BOM
- trailing whitespaces trimmed as a CS fix
- Closing PHP tag removed in favor of readability, avoiding possible
  issues with whitespaces, and to comply with current CS from the
  PHP ecosystem - PSRs etc.
2018-05-26 22:00:17 +02:00
Pedro Magalhães
230ef2d947
improve extension skeleton generator 2018-02-22 08:04:33 +01:00
Kalle Sommer Nielsen
2340f9a67d Fixed typo 2018-01-05 07:30:45 +01:00
Xinchen Hui
a6519d0514 year++ 2018-01-02 12:57:58 +08:00
Kalle Sommer Nielsen
216d711224 Fix ext_skel's help, the arguments passed are using a space, not an equal sign for values 2017-07-23 11:28:27 +02:00
Kalle Sommer Nielsen
f35f45906e Redesigned ext_skel to be written entirely in PHP with no dependencies, this means it will now run on Windows without Cygwin and other nonsense.
It no longer includes a way to generate XML documentation (the PHP documentation utilities already got tools for that in svn under phpdoc/doc-base) and it no longer support function stubs.

$ php ext_skel.php --help
php ext_skel.php --ext=<name> [--experimental] [--author=<name>]
                 [--dir=<path>] [--std] [--onlyunix]
                 [--onlywindows] [--help]

  --ext=<name>          The name of the extension defined as <name>
  --experimental        Passed if this extension is experimental, this creates
                        the EXPERIMENTAL file in the root of the extension
  --author=<name>       Your name, this is used if --header is passed and
                        for the CREDITS file
  --dir=<path>          Path to the directory for where extension should be
                        created. Defaults to the directory of where this script
                        lives
  --std                 If passed, the standard header and vim rules footer used

                        in extensions that is included in the core, will be used

  --onlyunix            Only generate configure scripts for Unix
  --onlywindows         Only generate configure scripts for Windows
  --help                This help

Example usage:
$ php ext_skel.php --ext test --std --experimental
$ php ext_skel.php --ext kalle --author "Kalle Sommer Nielsen"
$ php ext_skel.php --ext phpfi --dir "/home/kalle/dev/" --onlyunix
2017-07-23 10:36:35 +02:00
Frank M. Kromann
b079cc2af5 Rename script.
Add check for CLI version
2003-01-31 18:51:28 +00:00
Frank M. Kromann
941dc7260d Wrapper script to use ext_skel on Win32 2003-01-31 03:44:20 +00:00