if (PEAR::isError($e)) { echo $e->getMessage(); exit; } $e = $test->addPlatformException('pear-phpdoc.bat', 'windows'); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } $e = $test->addDependency('php', '4.1.0', 'ge', 'php'); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } // replace @PHP-BIN@ in this file with the path to php executable! pretty neat $e = $test->addReplacement('pear-phpdoc', 'pear-config', '@PHP-BIN@', 'php_bin'); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } $e = $test->addReplacement('pear-phpdoc.bat', 'pear-config', '@PHP-BIN@', 'php_bin'); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } // hack until they get their shit in line with docroot role $test->addRole('tpl', 'php'); $test->addRole('png', 'php'); $test->addRole('gif', 'php'); $test->addRole('jpg', 'php'); $test->addRole('css', 'php');
exit; } // just to make sure people don't try to install this with a broken Archive_Tar $e = $test->addDependency('Archive_Tar', '1.1', 'ge'); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } // optional dep for peardoc2 converter $e = $test->addDependency('XML_Beautifier', '1.1', 'ge', 'pkg', true); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } // replace @PHP-BIN@ in this file with the path to php executable! pretty neat $e = $test->addReplacement('pear-phpdoc', 'pear-config', '@PHP-BIN@', 'php_bin'); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } $e = $test->addReplacement('pear-phpdoc.bat', 'pear-config', '@PHP-BIN@', 'php_bin'); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } $e = $test->addReplacement('pear-phpdoc.bat', 'pear-config', '@BIN-DIR@', 'bin_dir'); if (PEAR::isError($e)) { echo $e->getMessage(); exit; } $e = $test->addReplacement('pear-phpdoc.bat', 'pear-config', '@PEAR-DIR@', 'php_dir');