2011-09-05 08:18:32 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
2012-03-14 23:57:58 +00:00
|
|
|
function autoload($file) {
|
2012-03-15 10:36:40 +00:00
|
|
|
return (file_exists($file) && include $file);
|
2012-03-14 23:57:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!autoload(__DIR__.'/../../../.composer/autoload.php') && !autoload(__DIR__.'/../vendor/.composer/autoload.php')) {
|
2012-02-05 20:23:52 +00:00
|
|
|
die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
|
|
|
|
'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
|
|
|
|
'php composer.phar install'.PHP_EOL);
|
2011-11-04 10:11:06 +00:00
|
|
|
}
|
2011-09-05 08:18:32 +00:00
|
|
|
|
|
|
|
use Composer\Compiler;
|
|
|
|
|
|
|
|
$compiler = new Compiler();
|
|
|
|
$compiler->compile();
|