Skip to content

Commit

Permalink
updates phar stub and manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Jan 10, 2015
1 parent 47689c0 commit b76ddaa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
15 changes: 9 additions & 6 deletions manifest.txt
@@ -1,10 +1,13 @@
bartlett/php-compatinfo: 3.7.2
bartlett/php-reflect: 2.6.2
bartlett/php-compatinfo: 4.0@47689c0589610ae515e1e4b1c5837fcb3276a643
bartlett/php-reflect: 3.0.x-dev@26e3987c417c62636aa569f7632c14e919275b44
doctrine/collections: v1.2
justinrainbow/json-schema: 1.3.7
nikic/php-parser: v1.0.2
phpunit/php-timer: 1.0.5
phpdocumentor/reflection-docblock: 2.0.3
sebastian/version: 1.0.4
seld/jsonlint: 1.3.1
symfony/console: v2.6.1
symfony/event-dispatcher: v2.6.1
symfony/finder: v2.6.1
symfony/console: v2.6.3
symfony/dependency-injection: v2.6.3
symfony/event-dispatcher: v2.6.3
symfony/finder: v2.6.3
symfony/stopwatch: v2.6.3
24 changes: 7 additions & 17 deletions phar-stub.php
@@ -1,24 +1,14 @@
#!/usr/bin/env php
<?php
if (class_exists('Phar')) {
Phar::mapPhar('phpcompatinfo.phar');
Phar::interceptFileFuncs();
$appName = 'phpCompatInfo';

if (!getenv("COMPATINFO")) {
$home = defined('PHP_WINDOWS_VERSION_BUILD') ? 'USERPROFILE' : 'HOME';
$files = array(
realpath('./phpcompatinfo.json'),
getenv($home).'/.config/phpcompatinfo.json',
'/etc/phpcompatinfo.json',
'phar://' . __FILE__ . '/bin/phpcompatinfo.json.dist'
);
foreach ($files as $file) {
if (file_exists($file)) {
putenv("COMPATINFO=$file");
break;
}
}
Phar::mapPhar(strtolower($appName) . '.phar');

if (!getenv("BARTLETTRC")) {
putenv("BARTLETTRC=" . strtolower($appName) . '.json');
}
require 'phar://' . __FILE__ . '/bin/phpcompatinfo';

require 'phar://' . __FILE__ . '/bin/' . strtolower($appName);
}
__HALT_COMPILER();

0 comments on commit b76ddaa

Please sign in to comment.