diff options
author | Remi Collet <remi@remirepo.net> | 2017-09-04 12:28:59 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-09-04 12:28:59 +0200 |
commit | 8631128ae3cbe5f162cfd3b36708f87e49d8f6e4 (patch) | |
tree | f857156ce346bb868f9517d798f803f185bfeec5 /php-jakubledl-dissect-bin.patch |
import from Fedora
Diffstat (limited to 'php-jakubledl-dissect-bin.patch')
-rw-r--r-- | php-jakubledl-dissect-bin.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/php-jakubledl-dissect-bin.patch b/php-jakubledl-dissect-bin.patch new file mode 100644 index 0000000..ed2d9dc --- /dev/null +++ b/php-jakubledl-dissect-bin.patch @@ -0,0 +1,36 @@ +diff --git a/bin/dissect.php b/bin/dissect.php +index db6b1c4..830021f 100644 +--- a/bin/dissect.php ++++ b/bin/dissect.php +@@ -1,27 +1,13 @@ ++#!/usr/bin/env php + <?php + +-define('DISSECT_VERSION', 'DEV'); ++define('DISSECT_VERSION', '__VERSION__'); + +-if (is_dir($vendor = getcwd() . '/vendor')) { +- require $vendor . '/autoload.php'; +-} +- +-if (is_dir($vendor = __DIR__ . '/../vendor')) { +- require $vendor . '/autoload.php'; +-} elseif (is_dir($vendor = __DIR__ . '/../../../../vendor')) { +- require $vendor . '/autoload.php'; +-} else { +- die( +- 'You must set up the project dependencies.' . PHP_EOL . +- 'To do that, run the following commands:' . PHP_EOL . PHP_EOL . +- '$ curl -s http://getcomposer.org/installer | php' . PHP_EOL . +- '$ php composer.phar install' . PHP_EOL +- ); +-} ++require_once '__PHPDIR__/Dissect/autoload.php'; + + if (!class_exists('Symfony\Component\Console\Application')) { + die( +- 'You must install the symfony/console package in order ' . ++ 'You must install the php-symfony-console package in order ' . + 'to use the command-line tool.' . PHP_EOL + ); + } |