Revision 3877:e68b76561491,
794 bytes
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
Back to the old array() notation for build tools (they still may be used with old PHP versions)
|
Line | |
---|
1 | <?php |
---|
2 | $license_block = <<<EOF |
---|
3 | /** |
---|
4 | * @package Dotclear |
---|
5 | * |
---|
6 | * @copyright Olivier Meunier & Association Dotclear |
---|
7 | * @copyright GPL-2.0-only |
---|
8 | */ |
---|
9 | EOF; |
---|
10 | |
---|
11 | $dc_base = dirname(__FILE__) . '/..'; |
---|
12 | $php_exec = $_SERVER['_']; |
---|
13 | |
---|
14 | $opts = array( |
---|
15 | 'http' => array() |
---|
16 | ); |
---|
17 | if (getenv('http_proxy') !== false) { |
---|
18 | $opts['http']['proxy'] = 'tcp://' . getenv('http_proxy'); |
---|
19 | } |
---|
20 | $context = stream_context_create($opts); |
---|
21 | |
---|
22 | if (!file_exists($dc_base . '/composer.phar')) { |
---|
23 | echo "Downloading composer.phar\n"; |
---|
24 | $composer_installer = file_get_contents('https://getcomposer.org/composer.phar', false, $context); |
---|
25 | file_put_contents($dc_base . '/composer.phar', $composer_installer); |
---|
26 | } |
---|
27 | chdir($dc_base); |
---|
28 | echo 'Running ' . $php_exec . ' composer.phar install' . "\n"; |
---|
29 | passthru($php_exec . ' composer.phar install'); |
---|
Note: See
TracBrowser
for help on using the repository browser.