Trac

root/trunk/package_Core.php

Revision 3703, 2.7 kB (checked in by lsmith, 7 months ago)

- fixed package file names

  • Property svn:eol-style set to native
Line 
1 <?php
2
3 require_once('PEAR/PackageFileManager2.php');
4 PEAR::setErrorHandling(PEAR_ERROR_DIE);
5
6 $packagexml = new PEAR_PackageFileManager2;
7
8 $version_release = '0.9';
9 $version_api = $version_release;
10 $state = 'beta';
11
12 $notes = <<<EOT
13 barfoo
14 EOT;
15
16 $summary = 'PHP5 Database Interface Core Package';
17
18 $description =<<<EOT
19 Doctrine_Core is the core package for the Doctrine DBAL/ORM. It contains various
20 helper classes that are necessary for both the DBAL and the ORM.
21 EOT;
22
23 $packagefile = './package_Core.xml';
24
25 $options = array(
26     'filelistgenerator' => 'svn',
27     'changelogoldtonew' => false,
28     'simpleoutput'      => true,
29     'baseinstalldir'    => '/',
30     'packagedirectory'  => './',
31     'packagefile'       => $packagefile,
32     'clearcontents'     => false,
33     'include'           => array(
34         'manual/',
35         'tests/',
36         'lib/Doctrine.php',
37         'lib/Doctrine/Builder/',
38         'lib/Doctrine/Cli.php',
39         'lib/Doctrine/Compiler/',
40         'lib/Doctrine/Configurable/',
41         'lib/Doctrine/Cli.php',
42         'lib/Doctrine/Data/',
43         'lib/Doctrine/Exception/',
44         'lib/Doctrine/Event/',
45         'lib/Doctrine/EventListener/',
46         'lib/Doctrine/File/',
47         'lib/Doctrine/FileFinder/',
48         'lib/Doctrine/Formatter/',
49         'lib/Doctrine/Inflector/',
50         'lib/Doctrine/Lib.php',
51         'lib/Doctrine/Locator/',
52         'lib/Doctrine/Log/',
53         'lib/Doctrine/Null/',
54         'lib/Doctrine/Overloadable/',
55         'lib/Doctrine/Parser/',
56         'lib/Doctrine/Task/',
57         'lib/Doctrine/Util/',
58     ),
59     'dir_roles'         => array(
60         'lib'           => 'php',
61         'manual'        => 'doc',
62         'tests'         => 'test',
63     ),
64     'exceptions' => array(
65         'README' => 'doc',
66         'CHANGELOG' => 'doc',
67         'LICENSE' => 'doc',
68         'COPYRIGHT' => 'doc'
69     )
70 );
71
72 $package = &PEAR_PackageFileManager2::importOptions($packagefile, $options);
73 $package->setPackageType('php');
74
75 $package->clearDeps();
76 $package->setPhpDep('5.2.3');
77 $package->setPearInstallerDep('1.4.0b1');
78 $package->addPackageDepWithChannel('required', 'PEAR', 'pear.php.net', '1.3.6');
79
80 $package->addRelease();
81 $package->generateContents();
82 $package->setReleaseVersion($version_release);
83 $package->setAPIVersion($version_api);
84 $package->setReleaseStability($state);
85 $package->setAPIStability($state);
86 $package->setNotes($notes);
87 $package->setSummary($summary);
88 $package->setDescription($description);
89 $package->addGlobalReplacement('package-info', '@package_version@', 'version');
90
91 if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) {
92     $package->writePackageFile();
93 } else {
94     $package->debugPackageFile();
95 }
96
Note: See TracBrowser for help on using the browser.