Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (40 sloc) 1.816 kb
<?php
require_once 'PEAR/PackageFileManager2.php';
// recommended - makes PEAR_Errors act like exceptions (kind of)
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$packagexml = new PEAR_PackageFileManager2();
$packagexml->setOptions(array('filelistgenerator' => 'file',
'packagedirectory' => dirname(__FILE__),
'baseinstalldir' => '/',
'dir_roles' => array(
'examples' => 'doc',
'docs' => 'doc',
'tests' => 'test'
),
'ignore' => array('package.php', 'package.xml', 'Services_Capsule.tmproj', 'package.xml.old'),
'simpleoutput' => true));
$packagexml->setPackageType('php');
$packagexml->addRelease();
$packagexml->setPackage('Services_Capsule');
$packagexml->setChannel('pear.php.net');
$packagexml->setReleaseVersion('0.1.0');
$packagexml->setAPIVersion('0.1.0');
$packagexml->setReleaseStability('alpha');
$packagexml->setAPIStability('alpha');
$packagexml->setSummary('A package to access the Capsule CRM webservice');
$packagexml->setDescription('This package provides developers with a complete set of Capsule CRM web service access ');
$packagexml->setNotes('Initial release');
$packagexml->setPhpDep('5.2.0');
$packagexml->setPearinstallerDep('1.6.0');
$packagexml->addPackageDepWithChannel('required', 'HTTP_Request2', 'pear.php.net', '0.5.1');
$packagexml->addMaintainer('lead', 'davidc', 'David Coallier', 'davidc@php.net');
$packagexml->setLicense('BSD License', 'http://www.opensource.org/licenses/bsd-license.html');
$packagexml->addGlobalReplacement('package-info', '@PEAR-VER@', 'version');
$packagexml->generateContents();
if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) {
$packagexml->writePackageFile();
} else {
$pkg->debugPackageFile();
$packagexml->debugPackageFile();
}
?>
Jump to Line
Something went wrong with that request. Please try again.