]>
Commit | Line | Data |
---|---|---|
20ba274d ER |
1 | --- composer-1.0.x-5744981/src/Composer/Compiler.php~ 2015-02-18 00:33:55.000000000 +0200 |
2 | +++ composer-1.0.x-5744981/src/Composer/Compiler.php 2015-02-18 00:34:38.952650516 +0200 | |
848ed42b | 3 | @@ -40,13 +40,13 @@ |
7e4a1874 ER |
4 | unlink($pharFile); |
5 | } | |
6 | ||
848ed42b ER |
7 | - $process = new Process('git log --pretty="%H" -n1 HEAD', __DIR__); |
8 | + $process = new Process('echo $PACKAGE_VERSION', __DIR__); | |
9 | if ($process->run() != 0) { | |
10 | throw new \RuntimeException('Can\'t run git log. You must ensure to run compile from composer git repository clone and that git binary is available.'); | |
11 | } | |
12 | $this->version = trim($process->getOutput()); | |
13 | ||
14 | - $process = new Process('git log -n1 --pretty=%ci HEAD', __DIR__); | |
15 | + $process = new Process('echo $RELEASE_DATE', __DIR__); | |
b8c430b4 ER |
16 | if ($process->run() != 0) { |
17 | throw new \RuntimeException('Can\'t run git log. You must ensure to run compile from composer git repository clone and that git binary is available.'); | |
b8c430b4 | 18 | } |
848ed42b ER |
19 | @@ -55,7 +55,7 @@ |
20 | $date->setTimezone(new \DateTimeZone('UTC')); | |
21 | $this->versionDate = $date->format('Y-m-d H:i:s'); | |
7e4a1874 | 22 | |
20ba274d | 23 | - $process = new Process('git describe --tags --exact-match HEAD'); |
826ed1fe | 24 | + $process = new Process('echo $PACKAGE_VERSION; exit $DEV_VERSION'); |
848ed42b ER |
25 | if ($process->run() == 0) { |
26 | $this->version = trim($process->getOutput()); | |
27 | } else { | |
dbc6fb41 ER |
28 | --- composer-1.0.0-14.alpha11/bin/compile 2015-11-25 18:32:33.718541181 +0200 |
29 | +++ composer-1.0.0-14.alpha11/bin/compile 2015-11-25 19:04:02.596489328 +0200 | |
30 | @@ -1,20 +1,6 @@ | |
31 | #!/usr/bin/php | |
32 | <?php | |
9a6d0081 | 33 | |
dbc6fb41 ER |
34 | -$cwd = getcwd(); |
35 | -chdir(__DIR__.'/../'); | |
9a6d0081 ER |
36 | -$ts = rtrim(shell_exec('git log -n1 --pretty=%ct HEAD')); |
37 | -if (!is_numeric($ts)) { | |
38 | - echo 'Could not detect date using "git log -n1 --pretty=%ct HEAD"'.PHP_EOL; | |
39 | - exit(1); | |
40 | -} | |
dbc6fb41 ER |
41 | -// Install with the current version to force it having the right ClassLoader version |
42 | -// Install without dev packages to clean up the included classmap from phpunit classes | |
43 | -shell_exec('php bin/composer config autoloader-suffix ComposerPhar' . $ts); | |
44 | -shell_exec('php bin/composer install -q --no-dev'); | |
45 | -shell_exec('php bin/composer config autoloader-suffix --unset'); | |
46 | -chdir($cwd); | |
47 | - | |
48 | require __DIR__.'/../src/bootstrap.php'; | |
49 | ||
50 | use Composer\Compiler; |