compile 518 B

1234567891011121314151617
  1. #!/usr/bin/env php
  2. <?php
  3. function autoload($file) {
  4. return (file_exists($file) && include $file) ? true : false;
  5. }
  6. if (!autoload(__DIR__.'/../../../.composer/autoload.php') && !autoload(__DIR__.'/../vendor/.composer/autoload.php')) {
  7. die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
  8. 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
  9. 'php composer.phar install'.PHP_EOL);
  10. }
  11. use Composer\Compiler;
  12. $compiler = new Compiler();
  13. $compiler->compile();