Browse Source

Issue #21

PHAR Compiler.
1.0
Andrés Montañez 11 years ago
parent
commit
fbb2aa1a46
  1. 2
      Mage/Compiler.php

2
Mage/Compiler.php

@ -38,7 +38,7 @@ class Mage_Compiler
$phar->addFromString('mage', str_replace( $phar->addFromString('mage', str_replace(
'$baseDir = dirname(dirname(__FILE__));', '$baseDir = dirname(dirname(__FILE__));',
'$baseDir = __DIR__;', '$baseDir = __DIR__;',
file_get_contents(__DIR__.'/../bin/mage.php') file_get_contents(__DIR__.'/../bin/mage')
)); ));
$phar->setStub("#!/usr/bin/env php\n<?php Phar::mapPhar('mage.phar'); require 'phar://mage.phar/mage'; __HALT_COMPILER();"); $phar->setStub("#!/usr/bin/env php\n<?php Phar::mapPhar('mage.phar'); require 'phar://mage.phar/mage'; __HALT_COMPILER();");

Loading…
Cancel
Save