From 4f5b44bd3bd490309eb2ba7b44df4769816ba729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 19:26:54 +0200 Subject: twig implementation --- .../Component/Intl/Resources/bin/create-stubs.php | 112 +++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php (limited to 'vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php') diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php new file mode 100644 index 00000000..d330d6b5 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php @@ -0,0 +1,112 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Filesystem\Filesystem; +use Symfony\Component\Icu\IcuData; +use Symfony\Component\Intl\Intl; +use Symfony\Component\Intl\ResourceBundle\Transformer\BundleTransformer; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\CurrencyBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\LanguageBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\LocaleBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\RegionBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\StubbingContext; + +require_once __DIR__ . '/common.php'; +require_once __DIR__ . '/autoload.php'; + +if (1 !== $GLOBALS['argc']) { + bailout(<<addRule(new LanguageBundleTransformationRule()); +$transformer->addRule(new RegionBundleTransformationRule()); +$transformer->addRule(new CurrencyBundleTransformationRule()); +$transformer->addRule(new LocaleBundleTransformationRule()); + +echo "Starting stub creation...\n"; + +$transformer->createStubs($context); + +echo "Wrote stubs to $targetDir.\n"; + +$versionFile = $context->getStubDir() . '/version.txt'; + +file_put_contents($versionFile, "$icuVersionInIcuComponent\n"); + +echo "Wrote $versionFile.\n"; + +echo "Done.\n"; + +echo wordwrap("Please change the Icu component to branch $stubBranch now and run:\n", LINE_WIDTH); + +echo "\n php copy-stubs-to-component.php\n"; -- cgit v1.2.3