]> granicus.if.org Git - php/commit
Redesigned ext_skel to be written entirely in PHP with no dependencies, this means...
authorKalle Sommer Nielsen <kalle@php.net>
Sun, 23 Jul 2017 08:36:35 +0000 (10:36 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Sun, 23 Jul 2017 08:36:35 +0000 (10:36 +0200)
commitf35f45906eac34498c7720326fb9da9fde960871
treef52619e588c1de18da9ad097770f5061b0026eb4
parentb67d6fdb661586d6be5cac01b250cd01d8483f37
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
14 files changed:
NEWS
UPGRADING
ext/ext_skel [deleted file]
ext/ext_skel.php [new file with mode: 0644]
ext/ext_skel_win32.php [deleted file]
ext/skeleton/CREDITS [deleted file]
ext/skeleton/EXPERIMENTAL [deleted file]
ext/skeleton/create_stubs [deleted file]
ext/skeleton/php_skeleton.h
ext/skeleton/skeleton.c
ext/skeleton/skeleton.php [deleted file]
ext/skeleton/tests/001.phpt
ext/skeleton/tests/002.phpt [new file with mode: 0644]
ext/skeleton/tests/003.phpt [new file with mode: 0644]