Skip to content

Commit

Permalink
fix up require so it works for dev and pear
Browse files Browse the repository at this point in the history
  • Loading branch information
apinstein committed Dec 21, 2009
1 parent 3bc6c27 commit 4102f7e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
package.xml
iphp-*.tgz
10 changes: 9 additions & 1 deletion iphp
Expand Up @@ -2,7 +2,15 @@
<?php <?php
ini_set('memory_limit', '20M'); ini_set('memory_limit', '20M');


require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'iphp.php'; if (strpos('@php_bin@', '@php_bin') === 0) // not a pear install
{
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'iphp.php';
}
else
{
require_once 'iphp'.DIRECTORY_SEPARATOR.'iphp.php';
}



$opts = array(); $opts = array();


Expand Down
17 changes: 17 additions & 0 deletions pearfarm.spec
@@ -0,0 +1,17 @@
<?php

$spec = PEARFarm_Specification::newSpec(array(PEARFarm_Specification::OPT_BASEDIR => dirname(__FILE__)))
->setName('iphp')
->setChannel('pear.nimblize.com')
->setSummary('PHP Shell')
->setDescription('An interactive PHP Shell (or Console, or REPL).')
->setReleaseVersion('1.0.0')
->setReleaseStability('stable')
->setApiVersion('1.0.0')
->setApiStability('stable')
->setLicense(PEARFarm_Specification::LICENSE_MIT)
->setNotes('First release of iphp.')
->addMaintainer('lead', 'Alan Pinstein', 'apinstein', 'apinstein@mac.com')
->addGitFiles()
->addExecutable('iphp')
;

0 comments on commit 4102f7e

Please sign in to comment.