1
0
Fork 0
composer/bin/compile

18 lines
362 B
Plaintext
Raw Normal View History

#!/usr/bin/env php
<?php
2012-03-15 12:14:02 +00:00
require __DIR__.'/../src/bootstrap.php';
use Composer\Compiler;
2012-05-12 07:41:15 +00:00
error_reporting(-1);
ini_set('display_errors', 1);
2012-05-11 14:41:41 +00:00
2013-03-10 12:58:49 +00:00
try {
$compiler = new Compiler();
$compiler->compile();
} catch (\Exception $e) {
echo 'Failed to compile phar: ['.get_class($e).'] '.$e->getMessage().' at '.$e->getFile().':'.$e->getLine();
exit(1);
}