From: Fabien Potencier Date: Thu, 27 Dec 2012 13:40:31 +0000 (+0100) Subject: removed PEAR related code X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5b6647d3e2c31e85ab99dd1edcf2e34db0bba0ab;p=web%2Fkonrad%2Ftwig.git removed PEAR related code --- diff --git a/bin/create_pear_package.php b/bin/create_pear_package.php deleted file mode 100644 index 4899927..0000000 --- a/bin/create_pear_package.php +++ /dev/null @@ -1,42 +0,0 @@ - date('Y-m-d'), - 'time' => date('H:m:00'), - 'version' => $argv[1], - 'api_version' => $argv[1], - 'stability' => $argv[2], - 'api_stability' => $argv[2], -); - -$context['files'] = ''; -$path = realpath(dirname(__FILE__).'/../lib/Twig'); -foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::LEAVES_ONLY) as $file) -{ - if (preg_match('/\.php$/', $file)) - { - $name = str_replace($path.'/', '', $file); - $context['files'] .= ' '."\n"; - } -} - -$template = file_get_contents(dirname(__FILE__).'/../package.xml.tpl'); -$content = preg_replace_callback('/\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/', 'replace_parameters', $template); -file_put_contents(dirname(__FILE__).'/../package.xml', $content); - -function replace_parameters($matches) -{ - global $context; - - return isset($context[$matches[1]]) ? $context[$matches[1]] : null; -} diff --git a/package.xml.tpl b/package.xml.tpl deleted file mode 100644 index f9a9b89..0000000 --- a/package.xml.tpl +++ /dev/null @@ -1,64 +0,0 @@ - - - Twig - pear.twig-project.org - Twig is a PHP template engine. - - Twig is a template language for PHP, released under the new BSD license - (code and documentation). - - Twig uses a syntax similar to the Django and Jinja template languages which - inspired the Twig runtime environment. - - - Fabien Potencier - fabpot - fabien.potencier@symfony-project.org - yes - - - Armin Ronacher - armin - armin.ronacher@active-4.com - no - - {{ date }} - - - {{ version }} - {{ api_version }} - - - {{ stability }} - {{ stability }} - - BSD Style - - - - - - - - - - -{{ files }} - - - - - - - - 5.2.4 - - - 1.4.0 - - - - -