root/tags/RELEASE_0_9_0a2/package.php

Revision 200, 2.8 kB (checked in by schst, 4 years ago)

prepared new release

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /**
3  * package.xml generation file for patTemplate
4  *
5  * This file is executed by createSnaps.php to
6  * automatically create a package that can be
7  * installed via the PEAR installer.
8  *
9  * $Id$
10  *
11  * @author        Stephan Schmidt <schst@php-tools.net>
12  * @package        patForms
13  * @subpackage    Tools
14  */
15
16 /**
17  * uses PackageFileManager
18  */
19 require_once 'PEAR/PackageFileManager.php';
20
21 /**
22  * current version
23  */
24 $version = '0.9.0a2';
25
26 /**
27  * current state
28  */
29 $state = 'alpha';
30
31 /**
32  * release notes
33  */
34 $notes = <<<EOT
35 Changes since 0.9.0a1:
36 - disabled script option by default (schst)
37 - added new Filter: Function (schst)
38 - added new method Element::applySimpleFilter() as requested by Helgi (schst)
39 - moved client side scripts to separate files (schst)
40 - createElementId() is now a static method (argh)
41 - patForms_Renderer_Array: added the elementName to the resulting array (argh)
42 - added new element: Combobox (schst)
43 - fixed bug in setValues() (schst)
44 - fixed bug in Trim filter (Björn Kraus)
45 EOT;
46
47 /**
48  * package description
49  */
50 $description = <<<EOT
51 patForms is a powerful package that helps you creating an validating forms. It is not limited to HTML forms.
52 EOT;
53
54 $package = new PEAR_PackageFileManager();
55
56 $result = $package->setOptions(array(
57     'package'           => 'patForms',
58     'summary'           => 'Powerful form management package.',
59     'description'       => $description,
60     'version'           => $version,
61     'state'             => $state,
62     'license'           => 'LGPL',
63     'filelistgenerator' => 'cvs',
64     'ignore'            => array( 'package.php', 'autopackage.php', 'package.xml', 'package2.xml', '.cvsignore' ),
65     'notes'             => $notes,
66     'simpleoutput'      => true,
67     'baseinstalldir'    => 'pat',
68     'packagedirectory'  => './',
69     'dir_roles'         => array(
70                                  'docs' => 'doc',
71                                  'examples' => 'doc',
72                                  'tests' => 'test',
73                                  )
74     ));
75
76 if (PEAR::isError($result)) {
77     echo $result->getMessage();
78     die();
79 }
80
81 $package->addMaintainer('argh', 'lead', 'Sebastian Mordziol', 'argh@php-tools.net');
82 $package->addMaintainer('schst', 'lead', 'Stephan Schmidt', 'schst@php-tools.net');
83 $package->addMaintainer('gerd', 'developer', 'Gerd Schaufelberger', 'gerd@php-tools.net');
84 $package->addMaintainer('luckec', 'helper', 'Carsten Lucke', 'carsten@tool-garage.de');
85
86 $package->addDependency('patError', '', 'has', 'pkg', false);
87 $package->addDependency('php', '4.2.0', 'ge', 'php', false);
88 $package->addDependency('DB', '', 'has', 'pkg', true);
89
90 if (isset($_GET['make']) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) {
91     $result = $package->writePackageFile();
92 } else {
93     $result = $package->debugPackageFile();
94 }
95
96 if (PEAR::isError($result)) {
97     echo $result->getMessage();
98     die();
99 }
100 ?>
Note: See TracBrowser for help on using the browser.