2011-09-05 08:18:32 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
2012-03-14 23:57:58 +00:00
|
|
|
function autoload($file) {
|
|
|
|
return (file_exists($file) && include $file) ? true : false;
|
|
|
|
}
|
|
|
|
|
|
|
|
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();
|