svn: /php/php-src/ branches/PHP_5_3/ext/intl/tests/rb_build.php branches/PHP_5_3/ext/intl/tests/resourcebundle.build
trunk/ext/intl/tests/resourcebundle.build
| From: | Stanislav Malyshev | Date: | Mon, 11 Jan 2010 23:46:43 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/intl/tests/rb_build.php branches/PHP_5_3/ext/intl/tests/resourcebundle.build trunk/ext/intl/tests/resourcebundle.build |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-61529@lists.php.net to get a copy of this message | ||
stas Mon, 11 Jan 2010 23:46:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293437
Log:
name resource build script resourcebundle.build
Changed paths:
D php/php-src/branches/PHP_5_3/ext/intl/tests/rb_build.php
A + php/php-src/branches/PHP_5_3/ext/intl/tests/resourcebundle.build
(from php/php-src/branches/PHP_5_3/ext/intl/tests/rb_build.php:r293436)
A php/php-src/trunk/ext/intl/tests/resourcebundle.build
Deleted: php/php-src/branches/PHP_5_3/ext/intl/tests/rb_build.php
===================================================================
--- php/php-src/branches/PHP_5_3/ext/intl/tests/rb_build.php 2010-01-11 23:11:35 UTC (rev 293436)
+++ php/php-src/branches/PHP_5_3/ext/intl/tests/rb_build.php 2010-01-11 23:46:43 UTC (rev 293437)
@@ -1,33 +0,0 @@
-<?php
-// THIS SCRIPT WILL REBUILD ResourceBundle bundles from source files
-
-// DEFINE YOUR ICU TOOLS PATH HERE
-define("ICU_DIR", "C:/PROJECTS/ICU40/BIN/");
-
-$here = dirname(__FILE__);
-
-$dir = new GlobIterator("$here/_files/*.txt", FilesystemIterator::KEY_AS_FILENAME);
-
-foreach($dir as $file) {
- passthru( ICU_DIR."genrb -s $here/_files/ -d $here/_files/resourcebundle
".$file->getFileName());
-}
-
-$dir = new GlobIterator("$here/_files/resourcebundle/*.res",
FilesystemIterator::KEY_AS_FILENAME);
-foreach($dir as $file) {
- if($file->getFileName() == "res_index.res") continue;
- $list[] = str_replace(".res", "", $file->getFileName());
-}
-
-$filelist = join(" {\"\"}\n", $list);
-$res_index = <<<END
-res_index:table(nofallback) {
- InstalledLocales {
-$filelist {""}
- }
-}
-END;
-file_put_contents("$here/_files/res_index.txt", $res_index);
-
-passthru( ICU_DIR."genrb -s $here/_files/ -d $here/_files/resourcebundle res_index.txt");
-
-// passthru(ICU_DIR."icupkg -tl -a $here/rb.txt -s $here/_files -d $here/_files new
$here/_files/resourcebundle.dat");
\ No newline at end of file
Copied: php/php-src/branches/PHP_5_3/ext/intl/tests/resourcebundle.build (from rev 293436,
php/php-src/branches/PHP_5_3/ext/intl/tests/rb_build.php)
===================================================================
--- php/php-src/branches/PHP_5_3/ext/intl/tests/resourcebundle.build (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/intl/tests/resourcebundle.build 2010-01-11 23:46:43 UTC (rev
293437)
@@ -0,0 +1,33 @@
+<?php
+// THIS SCRIPT WILL REBUILD ResourceBundle bundles from source files
+
+// DEFINE YOUR ICU TOOLS PATH HERE
+define("ICU_DIR", "C:/PROJECTS/ICU40/BIN/");
+
+$here = dirname(__FILE__);
+
+$dir = new GlobIterator("$here/_files/*.txt", FilesystemIterator::KEY_AS_FILENAME);
+
+foreach($dir as $file) {
+ passthru( ICU_DIR."genrb -s $here/_files/ -d $here/_files/resourcebundle
".$file->getFileName());
+}
+
+$dir = new GlobIterator("$here/_files/resourcebundle/*.res",
FilesystemIterator::KEY_AS_FILENAME);
+foreach($dir as $file) {
+ if($file->getFileName() == "res_index.res") continue;
+ $list[] = str_replace(".res", "", $file->getFileName());
+}
+
+$filelist = join(" {\"\"}\n", $list);
+$res_index = <<<END
+res_index:table(nofallback) {
+ InstalledLocales {
+$filelist {""}
+ }
+}
+END;
+file_put_contents("$here/_files/res_index.txt", $res_index);
+
+passthru( ICU_DIR."genrb -s $here/_files/ -d $here/_files/resourcebundle res_index.txt");
+
+// passthru(ICU_DIR."icupkg -tl -a $here/rb.txt -s $here/_files -d $here/_files new
$here/_files/resourcebundle.dat");
\ No newline at end of file
Added: php/php-src/trunk/ext/intl/tests/resourcebundle.build
===================================================================
--- php/php-src/trunk/ext/intl/tests/resourcebundle.build (rev 0)
+++ php/php-src/trunk/ext/intl/tests/resourcebundle.build 2010-01-11 23:46:43 UTC (rev 293437)
@@ -0,0 +1,33 @@
+<?php
+// THIS SCRIPT WILL REBUILD ResourceBundle bundles from source files
+
+// DEFINE YOUR ICU TOOLS PATH HERE
+define("ICU_DIR", "C:/PROJECTS/ICU40/BIN/");
+
+$here = dirname(__FILE__);
+
+$dir = new GlobIterator("$here/_files/*.txt", FilesystemIterator::KEY_AS_FILENAME);
+
+foreach($dir as $file) {
+ passthru( ICU_DIR."genrb -s $here/_files/ -d $here/_files/resourcebundle
".$file->getFileName());
+}
+
+$dir = new GlobIterator("$here/_files/resourcebundle/*.res",
FilesystemIterator::KEY_AS_FILENAME);
+foreach($dir as $file) {
+ if($file->getFileName() == "res_index.res") continue;
+ $list[] = str_replace(".res", "", $file->getFileName());
+}
+
+$filelist = join(" {\"\"}\n", $list);
+$res_index = <<<END
+res_index:table(nofallback) {
+ InstalledLocales {
+$filelist {""}
+ }
+}
+END;
+file_put_contents("$here/_files/res_index.txt", $res_index);
+
+passthru( ICU_DIR."genrb -s $here/_files/ -d $here/_files/resourcebundle res_index.txt");
+
+// passthru(ICU_DIR."icupkg -tl -a $here/rb.txt -s $here/_files -d $here/_files new
$here/_files/resourcebundle.dat");
\ No newline at end of file