diff -r 000000000000 -r 7f95f8617b0b vendor/symfony/vendors.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/symfony/vendors.php Sat Sep 24 15:40:41 2011 +0200 @@ -0,0 +1,46 @@ +#!/usr/bin/env php + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/* + +CAUTION: This file installs the dependencies needed to run the Symfony2 test suite. +If you want to create a new project, download the Symfony Standard Edition instead: + +http://symfony.com/download + +*/ + +if (!is_dir($vendorDir = dirname(__FILE__).'/vendor')) { + mkdir($vendorDir, 0777, true); +} + +$deps = array( + array('doctrine', 'http://github.com/doctrine/doctrine2.git', '2.1.1'), + array('doctrine-dbal', 'http://github.com/doctrine/dbal.git', '2.1.1'), + array('doctrine-common', 'http://github.com/doctrine/common.git', '2.1.1'), + array('monolog', 'http://github.com/Seldaek/monolog.git', '1.0.1'), + array('swiftmailer', 'http://github.com/swiftmailer/swiftmailer.git', 'v4.1.1'), + array('twig', 'http://github.com/fabpot/Twig.git', 'v1.1.2'), +); + +foreach ($deps as $dep) { + list($name, $url, $rev) = $dep; + + echo "> Installing/Updating $name\n"; + + $installDir = $vendorDir.'/'.$name; + if (!is_dir($installDir)) { + system(sprintf('git clone %s %s', escapeshellarg($url), escapeshellarg($installDir))); + } + + system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev))); +}