kalle Tue Jun 23 02:14:27 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/win32/build mkdist.php
Log:
MFH:
Use %* instead of a range + WS
http://cvs.php.net/viewvc.cgi/php-src/win32/build/mkdist.php?r1=1.13.4.1.2.13&r2=1.13.4.1.2.14&diff_format=u
Index: php-src/win32/build/mkdist.php
diff -u php-src/win32/build/mkdist.php:1.13.4.1.2.13
php-src/win32/build/mkdist.php:1.13.4.1.2.14
--- php-src/win32/build/mkdist.php:1.13.4.1.2.13 Tue Jun 23 01:37:23 2009
+++ php-src/win32/build/mkdist.php Tue Jun 23 02:14:27 2009
@@ -1,4 +1,4 @@
-<?php # $Id: mkdist.php,v 1.13.4.1.2.13 2009/06/23 01:37:23 kalle Exp $
+<?php # $Id: mkdist.php,v 1.13.4.1.2.14 2009/06/23 02:14:27 kalle Exp $
/* piece together a windows binary distro */
$build_dir = $argv[1];
@@ -397,23 +397,32 @@
function make_phar_dot_phar($dist_dir)
{
- if (!extension_loaded('phar')) return;
- $path_to_php = $dist_dir;
- $path_to_phar = realpath(__DIR__ . '/../../ext/phar');
- echo "Generating pharcommand.phar\n";
- $phar = new Phar($path_to_php . '/pharcommand.phar', 0, 'pharcommand');
- foreach (new DirectoryIterator($path_to_phar . '/phar') as $file) {
- if ($file->isDir() || $file == 'phar.php') continue;
- echo 'adding ', $file, "\n";
- $phar[(string) $file] = file_get_contents($path_to_phar. '/phar/' .
$file);
- }
- $phar->setSignatureAlgorithm(Phar::SHA1);
- $stub = file($path_to_phar . '/phar/phar.php');
- unset($stub[0]); // remove hashbang
- $phar->setStub(implode('', $stub));
+ if (!extension_loaded('phar')) {
+ return;
+ }
+
+ $path_to_phar = realpath(__DIR__ . '/../../ext/phar');
+
+ echo "Generating pharcommand.phar\n";
+ $phar = new Phar($dist_dir . '/pharcommand.phar', 0, 'pharcommand');
+
+ foreach (new DirectoryIterator($path_to_phar . '/phar') as $file) {
+ if ($file->isDir() || $file == 'phar.php') {
+ continue;
+ }
+
+ echo 'adding ', $file, "\n";
+ $phar[(string) $file] = file_get_contents($path_to_phar.
'/phar/' . $file);
+ }
+
+ $phar->setSignatureAlgorithm(Phar::SHA1);
+ $stub = file($path_to_phar . '/phar/phar.php');
+
+ unset($stub[0]); // remove hashbang
+ $phar->setStub(implode('', $stub));
- echo "Creating phar.phar.bat\n";
- file_put_contents($path_to_php . '/phar.phar.bat', "%~dp0php.exe
%~dp0pharcommand.phar %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n");
+ echo "Creating phar.phar.bat\n";
+ file_put_contents($dist_dir . '/phar.phar.bat', "%~dp0php.exe
%~dp0pharcommand.phar %*\r\n");
}
if (!is_dir($test_dir)) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php