Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony framework. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
if (!is_dir($vendorDir = dirname(__FILE__).'/vendor')) { | ||
mkdir($vendorDir, 0777, true); | ||
} | ||
|
||
$deps = array( | ||
array('assetic', 'http://github.com/kriswallsmith/assetic.git', 'origin/HEAD'), | ||
array('doctrine', 'http://github.com/doctrine/doctrine2.git', '2.0.5'), | ||
array('doctrine-dbal', 'http://github.com/doctrine/dbal.git', '2.0.5'), | ||
array('doctrine-common', 'http://github.com/doctrine/common.git', 'origin/3.0.x'), | ||
array('monolog', 'http://github.com/Seldaek/monolog.git', 'origin/HEAD'), | ||
array('swiftmailer', 'http://github.com/swiftmailer/swiftmailer.git', 'origin/4.1'), | ||
array('twig', 'http://github.com/fabpot/Twig.git', 'origin/HEAD'), | ||
); | ||
|
||
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', $url, $installDir)); | ||
} | ||
|
||
system(sprintf('cd %s && git fetch origin && git reset --hard %s', $installDir, $rev)); | ||
} |
This file was deleted.
Oops, something went wrong.
de61474
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably add a message in the script saying that this one is intended to be used when running the testsuite, not when creating a project as this was a WTF for some people on #symfony
de61474
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done: d6a4bcc