-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpackage.php
43 lines (41 loc) · 1.88 KB
/
package.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?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', '[email protected]');
$packagexml->addMaintainer('developer', 'nolan-interactive', 'Jeff Nolan', '[email protected]');
$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();
}
?>