Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

convert to package.xml v2

git-svn-id: http://svn.php.net/repository/pear/packages/Stream_Var/trunk@287141 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 6d91d2b216394a8fad03a918521c161cfc76b74a 1 parent 232b393
Christian Weiske cweiske authored

Showing 2 changed files with 142 additions and 141 deletions. Show diff stats Hide diff stats

  1. +0 83 package.php
  2. +142 58 package.xml
83 package.php
... ... @@ -1,83 +0,0 @@
1   -<?php
2   -/**
3   - * script to automate the generation of the
4   - * package.xml file.
5   - *
6   - * $Id$
7   - *
8   - * @author Stephan Schmidt <schst@php.net>
9   - * @package Stream_Var
10   - * @subpackage Tools
11   - */
12   -
13   -/**
14   - * uses PackageFileManager
15   - */
16   -require_once 'PEAR/PackageFileManager.php';
17   -
18   -/**
19   - * current version
20   - */
21   -$version = '1.0.0';
22   -
23   -/**
24   - * current state
25   - */
26   -$state = 'stable';
27   -
28   -/**
29   - * release notes
30   - */
31   -$notes = <<<EOT
32   -- fixed bug #2579: warning at stream_open(),
33   -- fixed notice in dir_opendir,
34   -- bumped to version 1.0.0, according to version number guidelines
35   -EOT;
36   -
37   -/**
38   - * package description
39   - */
40   -$description = <<<EOT
41   -Stream_Var can be registered as a stream with stream_register_wrapper() and allows stream based acces to variables in any scope. Arrays are treated as directories, so it's possible to replace temporary directories and files in your application with variables.
42   -EOT;
43   -
44   -$package = new PEAR_PackageFileManager();
45   -
46   -$result = $package->setOptions(array(
47   - 'package' => 'Stream_Var',
48   - 'summary' => 'Allows stream based access to any variable.',
49   - 'description' => $description,
50   - 'version' => $version,
51   - 'state' => $state,
52   - 'license' => 'PHP License',
53   - 'filelistgenerator' => 'cvs',
54   - 'ignore' => array('package.php', 'package.xml'),
55   - 'notes' => $notes,
56   - 'simpleoutput' => true,
57   - 'baseinstalldir' => 'Stream',
58   - 'packagedirectory' => './',
59   - 'dir_roles' => array('docs' => 'doc',
60   - 'examples' => 'doc',
61   - 'tests' => 'test',
62   - )
63   - ));
64   -
65   -if (PEAR::isError($result)) {
66   - echo $result->getMessage();
67   - die();
68   -}
69   -
70   -$package->addMaintainer('schst', 'lead', 'Stephan Schmidt', 'schst@php-tools.net');
71   -$package->addDependency('php', '4.3.2', 'ge', 'php', false);
72   -
73   -if (isset($_GET['make']) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) {
74   - $result = $package->writePackageFile();
75   -} else {
76   - $result = $package->debugPackageFile();
77   -}
78   -
79   -if (PEAR::isError($result)) {
80   - echo $result->getMessage();
81   - die();
82   -}
83   -?>
200 package.xml
... ... @@ -1,62 +1,146 @@
1   -<?xml version="1.0" encoding="ISO-8859-1" ?>
2   -<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
3   -<package version="1.0">
4   - <name>Stream_Var</name>
5   - <summary>Allows stream based access to any variable.</summary>
6   - <description>Stream_Var can be registered as a stream with stream_register_wrapper() and allows stream based acces to variables in any scope. Arrays are treated as directories, so it's possible to replace temporary directories and files in your application with variables.</description>
7   - <maintainers>
8   - <maintainer>
9   - <user>schst</user>
10   - <name>Stephan Schmidt</name>
11   - <email>schst@php-tools.net</email>
12   - <role>lead</role>
13   - </maintainer>
14   - </maintainers>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<package version="2.0"
  3 + xmlns="http://pear.php.net/dtd/package-2.0"
  4 + xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
  5 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6 + xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
  7 + http://pear.php.net/dtd/tasks-1.0.xsd
  8 + http://pear.php.net/dtd/package-2.0
  9 + http://pear.php.net/dtd/package-2.0.xsd"
  10 +>
  11 + <name>Stream_Var</name>
  12 + <channel>pear.php.net</channel>
  13 + <summary>Allows stream based access to any variable.</summary>
  14 + <description>
  15 + Stream_Var can be registered as a stream with stream_register_wrapper()
  16 + and allows stream based acces to variables in any scope.
  17 + Arrays are treated as directories, so it is possible to replace
  18 + temporary directories and files in your application with variables.
  19 + </description>
  20 +
  21 + <lead>
  22 + <name>Stephan Schmidt</name>
  23 + <user>schst</user>
  24 + <email>schst@php-tools.net</email>
  25 + <active>no</active>
  26 + </lead>
  27 +
  28 + <date>2009-08-12</date>
  29 + <time>08:43:50</time>
  30 +
  31 + <version>
  32 + <release>1.1.0</release>
  33 + <api>1.1.0</api>
  34 + </version>
  35 + <stability>
  36 + <release>stable</release>
  37 + <api>stable</api>
  38 + </stability>
  39 +
  40 + <license uri="http://www.php.net/license">PHP License</license>
  41 + <notes>
  42 +QA release:
  43 +- Fix bug #4229: Stream_Var needs url_stat method [ahayes]
  44 +- CS fixes [cweiske]
  45 +- Convert to package.xml v2
  46 + </notes>
  47 +
  48 + <contents>
  49 + <dir name="/">
  50 + <dir name="examples">
  51 + <file name="example_dir.php" role="doc" />
  52 + <file name="example_file.php" role="doc" />
  53 + <file name="example_modes.php" role="doc" />
  54 + </dir> <!-- //examples -->
  55 + <dir name="Stream">
  56 + <file name="Var.php" role="php" />
  57 + </dir>
  58 + </dir> <!-- / -->
  59 + </contents>
  60 +
  61 + <dependencies>
  62 + <required>
  63 + <php>
  64 + <min>4.3.2</min>
  65 + </php>
  66 + <pearinstaller>
  67 + <min>1.4.0b1</min>
  68 + </pearinstaller>
  69 + </required>
  70 + </dependencies>
  71 +
  72 + <phprelease />
  73 +
  74 + <changelog>
15 75 <release>
16   - <version>1.0.0</version>
17   - <date>2004-10-31</date>
18   - <license>PHP License</license>
19   - <state>stable</state>
20   - <notes>- fixed bug #2579: warning at stream_open(),
21   -- fixed notice in dir_opendir,
22   -- bumped to version 1.0.0, according to version number guidelines</notes>
23   - <deps>
24   - <dep type="php" rel="ge" version="4.3.2" optional="no"/>
25   - </deps>
26   - <filelist>
27   - <dir baseinstalldir="Stream" name="/">
28   - <dir name="examples">
29   - <file role="doc" name="example_dir.php"/>
30   - <file role="doc" name="example_file.php"/>
31   - <file role="doc" name="example_modes.php"/>
32   - </dir> <!-- examples -->
33   - <file role="php" name="Var.php"/>
34   - </dir> <!-- / -->
35   - </filelist>
  76 + <version>
  77 + <release>0.2</release>
  78 + <api>0.2</api>
  79 + </version>
  80 + <stability>
  81 + <release>stable</release>
  82 + <api>stable</api>
  83 + </stability>
  84 + <date>2003-08-16</date>
  85 + <license uri="http://www.php.net/license">PHP License</license>
  86 + <notes>
  87 +inital release
  88 + </notes>
  89 + </release>
  90 +
  91 + <release>
  92 + <version>
  93 + <release>0.2.1</release>
  94 + <api>0.2.1</api>
  95 + </version>
  96 + <stability>
  97 + <release>stable</release>
  98 + <api>stable</api>
  99 + </stability>
  100 + <date>2003-08-19</date>
  101 + <license uri="http://www.php.net/license">PHP License</license>
  102 + <notes>
  103 +fixed bug in dir_opendir, fixed example
  104 + </notes>
36 105 </release>
37   - <changelog>
38   - <release>
39   - <version>0.2</version>
40   - <date>2003-08-16</date>
41   - <license>PHP License</license>
42   - <state>stable</state>
43   - <notes>inital release</notes>
44   - </release>
45   - <release>
46   - <version>0.2.1</version>
47   - <date>2003-08-19</date>
48   - <license>PHP License</license>
49   - <state>stable</state>
50   - <notes>fixed bug in dir_opendir, fixed example</notes>
51   - </release>
52   - <release>
53   - <version>1.0.0</version>
54   - <date>2004-10-31</date>
55   - <license>PHP License</license>
56   - <state>stable</state>
57   - <notes>- fixed bug #2579: warning at stream_open(),
  106 +
  107 + <release>
  108 + <version>
  109 + <release>1.0.0</release>
  110 + <api>1.0.0</api>
  111 + </version>
  112 + <stability>
  113 + <release>stable</release>
  114 + <api>stable</api>
  115 + </stability>
  116 + <date>2004-10-31</date>
  117 + <license uri="http://www.php.net/license">PHP License</license>
  118 + <notes>
  119 +- fixed bug #2579: warning at stream_open(),
58 120 - fixed notice in dir_opendir,
59   -- bumped to version 1.0.0, according to version number guidelines</notes>
60   - </release>
61   - </changelog>
  121 +- bumped to version 1.0.0, according to version number guidelines
  122 + </notes>
  123 + </release>
  124 +
  125 + <release>
  126 + <version>
  127 + <release>1.1.0</release>
  128 + <api>1.1.0</api>
  129 + </version>
  130 + <stability>
  131 + <release>stable</release>
  132 + <api>stable</api>
  133 + </stability>
  134 + <date>2009-08-12</date>
  135 + <license uri="http://www.php.net/license">PHP License</license>
  136 + <notes>
  137 +QA release:
  138 +- Fix bug #4229: Stream_Var needs url_stat method [ahayes]
  139 +- CS fixes [cweiske]
  140 +- Convert to package.xml v2
  141 + </notes>
  142 + </release>
  143 +
  144 + </changelog>
  145 +
62 146 </package>

0 comments on commit 6d91d2b

Please sign in to comment.
Something went wrong with that request. Please try again.