This repository was archived by the owner on Feb 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgenerate_package_xml.php
More file actions
51 lines (41 loc) · 1.8 KB
/
generate_package_xml.php
File metadata and controls
51 lines (41 loc) · 1.8 KB
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
44
45
46
47
48
49
50
51
<?php
require_once('PEAR/PackageFileManager2.php');
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$options = array(
'filelistgenerator' => 'svn',
'changelogoldtonew' => false,
'simpleoutput' => true,
'baseinstalldir' => '/',
'packagedirectory' => dirname(__FILE__),
'clearcontents' => true,
'ignore' => array('generate_package_xml.php', '.svn', '.cvs*'),
'dir_roles' => array(
'docs' => 'doc',
'examples' => 'doc',
'tests' => 'test',
),
);
$packagexml = &PEAR_PackageFileManager2::importOptions('package.xml', $options);
$packagexml->setPackageType('php');
$packagexml->setPackage('Crypt_DiffieHellman');
$packagexml->setSummary('Implementation of Diffie-Hellman Key Exchange cryptographic protocol for PHP5');
$packagexml->setDescription("Implementation of the Diffie-Hellman Key Exchange cryptographic protocol\nin PHP5. Enables two parties without any prior knowledge of each other\nestablish a secure shared secret key across an insecure channel\nof communication.");
$packagexml->setChannel('pear.php.net');
$notes = <<<EOT
* Fixes #17446. Removed dl() support for loading big integer extensions
EOT;
$packagexml->setNotes($notes);
$packagexml->detectDependencies();
$packagexml->addMaintainer('lead', 'shupp', 'Bill Shupp', '[email protected]');
$packagexml->setLicense('New BSD License', 'http://opensource.org/licenses/bsd-license.php');
$packagexml->addRelease();
$packagexml->generateContents();
$packagexml->setAPIVersion('0.2.4');
$packagexml->setReleaseVersion('0.2.5');
$packagexml->setReleaseStability('beta');
$packagexml->setAPIStability('beta');
if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) {
$packagexml->writePackageFile();
} else {
$packagexml->debugPackageFile();
}