Skip to content

Commit 9d78dc7

Browse files
authored
Merge pull request #422 from phpmetrics/hf_phar
hot fixing phar
2 parents 4aee112 + 5134a57 commit 9d78dc7

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

artifacts/phar/build.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$phar->startBuffering();
1717

1818
$files = array_merge(rglob('*.php'), rglob('*.js'), rglob('*.html'), rglob('*.css'), rglob('*.png'), rglob('*.ttf'));
19-
$exclude = '!^(\.git)|(\.svn)|(bin)|([tT]ests)!|(doc)|(artifacts)';
19+
$exclude = '!^(\.git)|(\.svn)|(bin)|([tT]ests)|(doc)|(artifacts)!';
2020
foreach ($files as $file) {
2121
if (preg_match($exclude, $file)) {
2222
continue;
@@ -40,7 +40,14 @@
4040
4141
Phar::mapPhar('phpmetrics.phar');
4242
43+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
44+
// PLEASE do not edit this file without editing bin/phpmetrics
45+
// PLEASE do not edit this file without editing bin/phpmetrics
46+
// PLEASE do not edit this file without editing bin/phpmetrics
47+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
48+
4349
require_once 'phar://phpmetrics.phar/vendor/autoload.php';
50+
define('PROJECT_DIR', dirname(__DIR__));
4451
(new \Hal\Application\Application())->run(\$argv);
4552
4653
__HALT_COMPILER();

bin/phpmetrics

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ if (
1717
);
1818
};
1919

20+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21+
// PLEASE do not edit this file without editing artifacts/phar/build.php
22+
// PLEASE do not edit this file without editing artifacts/phar/build.php
23+
// PLEASE do not edit this file without editing artifacts/phar/build.php
24+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
25+
2026
define('PROJECT_DIR', dirname(__DIR__));
2127

2228
(new \Hal\Application\Application())->run($argv);

releases/phpmetrics.phar

-144 KB
Binary file not shown.

0 commit comments

Comments
 (0)