Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

prepared new release

git-svn-id: http://svn.php.net/repository/pear/packages/Stream_Var/trunk@171721 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 9f64cf39923cd5826589db7b11a3c38f10574076 1 parent 8487cf6
Stephan Schmidt authored
Showing with 108 additions and 24 deletions.
  1. +1 −1  examples/example_dir.php
  2. +83 −0 package.php
  3. +24 −23 package.xml
View
2  examples/example_dir.php
@@ -1,5 +1,5 @@
<?PHP
- require_once '../Var.php';
+ require_once 'Stream/Var.php';
stream_wrapper_register( "var", "Stream_Var" );
$dirname = 'var://_SERVER';
View
83 package.php
@@ -0,0 +1,83 @@
+<?php
+/**
+ * script to automate the generation of the
+ * package.xml file.
+ *
+ * $Id$
+ *
+ * @author Stephan Schmidt <schst@php.net>
+ * @package Stream_Var
+ * @subpackage Tools
+ */
+
+/**
+ * uses PackageFileManager
+ */
+require_once 'PEAR/PackageFileManager.php';
+
+/**
+ * current version
+ */
+$version = '1.0.0';
+
+/**
+ * current state
+ */
+$state = 'stable';
+
+/**
+ * release notes
+ */
+$notes = <<<EOT
+- fixed bug #2579: warning at stream_open(),
+- fixed notice in dir_opendir,
+- bumped to version 1.0.0, according to version number guidelines
+EOT;
+
+/**
+ * package description
+ */
+$description = <<<EOT
+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.
+EOT;
+
+$package = new PEAR_PackageFileManager();
+
+$result = $package->setOptions(array(
+ 'package' => 'Stream_Var',
+ 'summary' => 'Allows stream based access to any variable.',
+ 'description' => $description,
+ 'version' => $version,
+ 'state' => $state,
+ 'license' => 'PHP License',
+ 'filelistgenerator' => 'cvs',
+ 'ignore' => array('package.php', 'package.xml'),
+ 'notes' => $notes,
+ 'simpleoutput' => true,
+ 'baseinstalldir' => 'Stream',
+ 'packagedirectory' => './',
+ 'dir_roles' => array('docs' => 'doc',
+ 'examples' => 'doc',
+ 'tests' => 'test',
+ )
+ ));
+
+if (PEAR::isError($result)) {
+ echo $result->getMessage();
+ die();
+}
+
+$package->addMaintainer('schst', 'lead', 'Stephan Schmidt', 'schst@php-tools.net');
+$package->addDependency('php', '4.3.2', 'ge', 'php', false);
+
+if (isset($_GET['make']) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) {
+ $result = $package->writePackageFile();
+} else {
+ $result = $package->debugPackageFile();
+}
+
+if (PEAR::isError($result)) {
+ echo $result->getMessage();
+ die();
+}
+?>
View
47 package.xml
@@ -8,38 +8,30 @@
<maintainer>
<user>schst</user>
<name>Stephan Schmidt</name>
- <email>schst@php.net</email>
+ <email>schst@php-tools.net</email>
<role>lead</role>
</maintainer>
</maintainers>
<release>
- <version>0.2.1</version>
- <date>2003-08-19</date>
+ <version>1.0.0</version>
+ <date>2004-10-31</date>
<license>PHP License</license>
<state>stable</state>
- <notes>fixed bug in dir_opendir, fixed example</notes>
+ <notes>- fixed bug #2579: warning at stream_open(),
+- fixed notice in dir_opendir,
+- bumped to version 1.0.0, according to version number guidelines</notes>
<deps>
- <dep type="php" rel="ge" version="4.3.2"/>
+ <dep type="php" rel="ge" version="4.3.2" optional="no"/>
</deps>
- <provides type="class" name="Stream_Var" />
- <provides type="function" name="Stream_Var::stream_open" />
- <provides type="function" name="Stream_Var::stream_eof" />
- <provides type="function" name="Stream_Var::stream_tell" />
- <provides type="function" name="Stream_Var::stream_close" />
- <provides type="function" name="Stream_Var::stream_read" />
- <provides type="function" name="Stream_Var::stream_write" />
- <provides type="function" name="Stream_Var::stream_seek" />
- <provides type="function" name="Stream_Var::stream_flush" />
- <provides type="function" name="Stream_Var::stream_stat" />
- <provides type="function" name="Stream_Var::dir_opendir" />
- <provides type="function" name="Stream_Var::dir_closedir" />
- <provides type="function" name="Stream_Var::dir_rewinddir" />
- <provides type="function" name="Stream_Var::dir_readdir" />
<filelist>
- <file role="doc" baseinstalldir="Stream" md5sum="52446e94dbc213d913219f25f2d63b37" name="examples/example_dir.php"/>
- <file role="doc" baseinstalldir="Stream" md5sum="37f3591325b268b77e4cc89051f8e6e2" name="examples/example_file.php"/>
- <file role="doc" baseinstalldir="Stream" md5sum="5addd708488bd21d31b764c844abd888" name="examples/example_modes.php"/>
- <file role="php" baseinstalldir="Stream" md5sum="623f99fb90d4f1835d6143f7c3b5bfac" name="Var.php"/>
+ <dir baseinstalldir="Stream" name="/">
+ <dir name="examples">
+ <file role="doc" name="example_dir.php"/>
+ <file role="doc" name="example_file.php"/>
+ <file role="doc" name="example_modes.php"/>
+ </dir> <!-- examples -->
+ <file role="php" name="Var.php"/>
+ </dir> <!-- / -->
</filelist>
</release>
<changelog>
@@ -57,5 +49,14 @@
<state>stable</state>
<notes>fixed bug in dir_opendir, fixed example</notes>
</release>
+ <release>
+ <version>1.0.0</version>
+ <date>2004-10-31</date>
+ <license>PHP License</license>
+ <state>stable</state>
+ <notes>- fixed bug #2579: warning at stream_open(),
+- fixed notice in dir_opendir,
+- bumped to version 1.0.0, according to version number guidelines</notes>
+ </release>
</changelog>
</package>
Please sign in to comment.
Something went wrong with that request. Please try again.