forked from fabriceb/sfEasyGMapPlugin
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgenpkgxml.php
executable file
·65 lines (56 loc) · 2.77 KB
/
genpkgxml.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Generates and updates a package.xml file
* dependencies : PEAR_PackageFileManager 1.6+
* @author Laurent Bachelier <[email protected]>
*/
error_reporting(E_ALL); // no E_STRICT
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$packagexml = new PEAR_PackageFileManager2;
$packagexml->setOptions(
array('baseinstalldir' => '/',
'packagedirectory' => dirname(__FILE__),
'filelistgenerator' => 'file',
'ignore' => array('TODO'),
'exceptions' => array('README.md' => 'doc', 'LICENSE' => 'doc'),
));
$packagexml->setPackage('sfEasyGMapPlugin');
$packagexml->setSummary('An easy, object-oriented, PHP abstraction of the Google Maps API');
$packagexml->setDescription('The sfEasyGMap plugin provides helpers and an objet-oriented PHP abstraction to the Google Maps API to ease the process of adding a Google Map and customising it in your symfony projects.');
$packagexml->setChannel('plugins.symfony-project.org');
$packagexml->addMaintainer('lead', 'fabriceb', 'Fabrice Bernhard', '[email protected]');
$packagexml->addMaintainer('developer', 'vincentguillon', 'Vincent Guillon', '[email protected]');
$packagexml->addMaintainer('developer', 'laurentb', 'Laurent Bachelier', '[email protected]');
$packagexml->addMaintainer('developer', 'chok', 'Maxime Picaud', '[email protected]');
$packagexml->addMaintainer('developer', 'benja-M-1', 'Benjamin Grandfond', '[email protected]');
$packagexml->addMaintainer('contributor', 'gionn', 'Giovanni Toraldo', '[email protected]');
$packagexml->addMaintainer('contributor', 'marekkalnik', 'Marek Kalnik', '[email protected]');
$packagexml->addMaintainer('contributor', 'jlirochon', 'Julien Lirochon', '[email protected]');
$packagexml->addMaintainer('contributor', 'nicolasmartin', 'Nicolas Martin', '[email protected]');
$packagexml->addMaintainer('contributor', 'tonypiper', 'Tony Piper', '[email protected]');
$packagexml->setLicense('MIT License', 'http://www.symfony-project.org/license');
// This will ADD a changelog entry to an existing package.xml
$packagexml->setAPIVersion('3.1.0');
$packagexml->setReleaseVersion('3.1.0');
$packagexml->setNotes('
* corrected package.xml
* added GMapDirections functionalities
');
$packagexml->setReleaseStability('stable');
$packagexml->setAPIStability('stable');
$packagexml->addRelease();
$packagexml->setPackageType('php');
$packagexml->setPhpDep('5.2.0');
$packagexml->setPearinstallerDep('1.4.1');
// Supported versions of Symfony
$packagexml->addPackageDepWithChannel('required', 'symfony', 'pear.symfony-project.com', '1.0.0', '1.3.0');
$packagexml->generateContents(); // Add the files
if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make'))
{
$packagexml->writePackageFile();
}
else
{
$packagexml->debugPackageFile();
}