forked from theodo/sfEasyGMapPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genpkgxml.php
executable file
·59 lines (49 loc) · 2.47 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
<?php
/**
* Generates and updates a package.xml file
* dependencies : PEAR_PackageFileManager 1.6+
* @author Laurent Bachelier <laurent@bachelier.name>
*/
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', 'fabriceb@theodo.fr');
$packagexml->addMaintainer('developer', 'vincentguillon', 'Vincent Guillon', 'vincentg@theodo.fr');
$packagexml->addMaintainer('developer', 'laurentb', 'Laurent Bachelier', 'laurentb@theodo.fr');
$packagexml->addMaintainer('developer', 'chok', 'Maxime Picaud', 'chokorp@gmail.com');
$packagexml->addMaintainer('contributor', 'gionn', 'Giovanni Toraldo', 'gt@libersoft.it');
$packagexml->addMaintainer('contributor', 'marekkalnik', 'Marek Kalnik', 'marekk@theodo.fr');
$packagexml->addMaintainer('contributor', 'jlirochon', 'Julien Lirochon', 'julien@lirochon.net');
$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();