diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2003-06-29 12:21:58 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2003-06-29 12:21:58 +0000 |
commit | 7218a70ff684e476a2fd4f0ed75a466de5f5c724 (patch) | |
tree | dd197ca646a537e508e45f6e249f434b3cb119e3 /ext/ext_skel_win32.php | |
parent | 4aa81c9d72395c5f8ca0a6decef51c6eff1904be (diff) | |
download | php-git-7218a70ff684e476a2fd4f0ed75a466de5f5c724.tar.gz |
ext_skel is no more, and ext_skel_ng is moving to PEAR::PECL_Gen
Diffstat (limited to 'ext/ext_skel_win32.php')
-rw-r--r-- | ext/ext_skel_win32.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/ext/ext_skel_win32.php b/ext/ext_skel_win32.php deleted file mode 100644 index 5036ad21d8..0000000000 --- a/ext/ext_skel_win32.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php -/* $Id$ */ - -if (php_sapi_name() != "cli") { - echo "Please run this script using the CLI version of PHP\n"; - exit; -} -/* - This script can be used on Win32 systems - - 1) Make sure you have CygWin installed - 2) Adjust the $cygwin_path to match your installation - 3) Change the environment cariable PATHEXT to include .PHP - 4) run ext_skel --ext_name=... - the first time you run this script you will be asked to - associate it with a program. chooses the CLI version of php. -*/ - -$cygwin_path = 'c:\cygwin\bin'; - -$path = getenv("PATH"); -putenv("PATH=$cygwin_path;$path"); - -array_shift($argv); -system("sh ext_skel " . implode(" ", $argv)); - -$extname = ""; -$skel = "skeleton"; -foreach($argv as $arg) { - if (strtolower(substr($arg, 0, 9)) == "--extname") { - $extname = substr($arg, 10); - } - if (strtolower(substr($arg, 0, 6)) == "--skel") { - $skel = substr($arg, 7); - } -} - -$fp = fopen("$skel/skeleton.dsp", "rb"); -if ($fp) { - $dsp_file = fread($fp, filesize("$skel/skeleton.dsp")); - fclose($fp); - - $dsp_file = str_replace("extname", $extname, $dsp_file); - $dsp_file = str_replace("EXTNAME", strtoupper($extname), $dsp_file); - $fp = fopen("$extname/$extname.dsp", "wb"); - if ($fp) { - fwrite($fp, $dsp_file); - fclose($fp); - } -} - -?>
\ No newline at end of file |