Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 109 lines (95 sloc) 3.334 kb
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
1 <?php
2 /**
5aaadab Ken Guest more phpcs related changes [coding standards]
kenguest authored
3 * script to automate the generation of the package.xml file.
4 *
5 * PHP Versions 4 and 5
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
6 *
7 * $Id$
8 *
5aaadab Ken Guest more phpcs related changes [coding standards]
kenguest authored
9 * @category Date
10 * @package Date_Holidays
11 * @author Stephan Schmidt <schst@php-tools.net>
12 * @subpackage Tools
13 * @license http://www.php.net/license/3_01.txt PHP License 3.0.1
14 * @version CVS: $Id$
15 * @link http://pear.php.net/package/Date_Holidays
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
16 */
17
18 /**
19 * uses PackageFileManager
da1a104 Fixed bug #7193 : signature of isHoliday() in composite driver was incor...
Stephan Schmidt authored
20 */
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
21 require_once 'PEAR/PackageFileManager.php';
22
23 /**
24 * current version
25 */
9313b96 added unit-test suite for retests of bug-fixes
Carsten Lucke authored
26 $version = '0.17.2';
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
27
28 /**
29 * current state
30 */
3b456fe updated package.xml
Carsten Lucke authored
31 $state = 'alpha';
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
32
33 /**
34 * release notes
35 */
36 $notes = <<<EOT
9313b96 added unit-test suite for retests of bug-fixes
Carsten Lucke authored
37 - Fixed bug #12807: incorrect holidays computation [kguest]
5d12089 prepared new release
Carsten Lucke authored
38 - Added new drivers and filters for Netherlands (contributed by Jos van der Woude) and Norway (contributed by Vegard Fiksdal)
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
39 EOT;
40
41 /**
42 * package description
43 */
5d12089 prepared new release
Carsten Lucke authored
44 $description = "Date_Holidays helps you calculating the dates and titles " .
5aaadab Ken Guest more phpcs related changes [coding standards]
kenguest authored
45 "of holidays and other special celebrations. " .
46 "The calculation is driver-based so it is easy to add new " .
47 "drivers that calculate a country's holidays. The methods of " .
48 "the class can be used to get a holiday's date and title in " .
49 "various languages.";
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
50
51 $package = new PEAR_PackageFileManager();
52
53 $result = $package->setOptions(array(
54 'package' => 'Date_Holidays',
55 'summary' => 'Driver based class to calculate holidays.',
56 'description' => $description,
57 'version' => $version,
58 'state' => $state,
59 'license' => 'PHP License',
9de91a0 Daniel O'Connor Fixed unit tests (package.xml not updated though)
CloCkWeRX authored
60 'filelistgenerator' => 'svn',
8037cc9 updated package-management scripts
Carsten Lucke authored
61 'ignore' => array(
5d12089 prepared new release
Carsten Lucke authored
62 'mkSource.php', 'package.php', 'package.xml', 'package2.xml',
63 'test.php', 'docs/', 'tests/test_missingLocale.php',
64 'tests/test_getHolidays.php',
65 'tests/testHolidays2005stampsAndSavingsDay.php', '*.zargo',
66 '*.pdf', '*.sh', 'data/', 'util/', 'TODO', 'updatePear.php',
5aaadab Ken Guest more phpcs related changes [coding standards]
kenguest authored
67 'changelog'),
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
68 'notes' => $notes,
69 'simpleoutput' => true,
70 'baseinstalldir' => 'Date',
8037cc9 updated package-management scripts
Carsten Lucke authored
71 'packagedirectory' => dirname(__FILE__),
f2b0a66 created package for 0.14.0 release
Carsten Lucke authored
72 'dir_roles' => array(
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
73 'examples' => 'doc',
b2e2c38 added extra scripts directory, added example xml-file showing how to use...
Carsten Lucke authored
74 'tests' => 'test',
f2b0a66 created package for 0.14.0 release
Carsten Lucke authored
75 'lang' => 'data'
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
76 )
77 ));
78
79 if (PEAR::isError($result)) {
80 echo $result->getMessage();
81 die();
82 }
83
84 $package->addMaintainer('luckec', 'lead', 'Carsten Lucke', 'luckec@php.net');
93f169f minor refactorings, updated test-cases for USA driver, prepared 0.15.2 r...
Carsten Lucke authored
85 $package->addMaintainer('schst', 'developer', 'Stephan Schmidt', 'schst@php.net');
9313b96 added unit-test suite for retests of bug-fixes
Carsten Lucke authored
86 $package->addMaintainer('wiesemann', 'contributor', 'Mark Wiesemann', 'wiesemann@php.net');
87 $package->addMaintainer('kguest', 'lead', 'Ken Guest', 'ken@linux.ie');
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
88
9de91a0 Daniel O'Connor Fixed unit tests (package.xml not updated though)
CloCkWeRX authored
89 $package->addDependency('PEAR', '1.5.6', 'ge', 'pkg', false);
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
90 $package->addDependency('Date', '', 'has', 'pkg', false);
3ec94e0 removed old language-files
Carsten Lucke authored
91 $package->addDependency('Console_Getargs', '', 'has', 'pkg', true);
5fb6139 fixed script-name, added package-options for upcoming release
Carsten Lucke authored
92
5d12089 prepared new release
Carsten Lucke authored
93 if (isset($_GET['make']) ||
94 (isset($_SERVER['argv'][1]) &&
5aaadab Ken Guest more phpcs related changes [coding standards]
kenguest authored
95 $_SERVER['argv'][1] == 'make')) {
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
96 $result = $package->writePackageFile();
97 } else {
98 $result = $package->debugPackageFile();
99 }
100
101 if (PEAR::isError($result)) {
ecbeb1d Started implementing Filter objects,
Carsten Lucke authored
102 echo 'ERROR: ';
0671be4 Date_Holidays, initial commit
Carsten Lucke authored
103 echo $result->getMessage();
104 die();
105 }
ecbeb1d Started implementing Filter objects,
Carsten Lucke authored
106
5ce14cd added filter for official German holidays,
Carsten Lucke authored
107 echo '[INFO]: Date_Holidays-' . $version . '.tgz' . "\n";
5aaadab Ken Guest more phpcs related changes [coding standards]
kenguest authored
108 ?>
Something went wrong with that request. Please try again.