svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/ Commands.php

[email protected] (Brett Bieber)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
saltybeagle                              Mon, 12 Jul 2010 13:58:20 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=301194

Log:
Simplify package skeleton generator to make it more approachable. Remove branches/tags/trunk dir creation. Add links to documentation.

Changed paths:
    U   pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php

Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php
===================================================================
--- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php	2010-07-12 13:52:43 UTC (rev 301193)
+++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php	2010-07-12 13:58:20 UTC (rev 301194)
@@ -411,13 +411,8 @@
                                                                ' already exists');
         }
         mkdir($info['path']);
-
         chdir($info['path']);
-        mkdir('trunk');
-        mkdir('tags');
-        mkdir('branches');

-        chdir('trunk');
         mkdir('src');
         mkdir('src/' . $info['mainPath'], 0777, true);
         file_put_contents('src/' . $info['mainPath'] . '/Main.php', '<?php
@@ -451,9 +446,9 @@
 }
 ');
         mkdir('data');
-        mkdir('customcommand');
-        mkdir('customrole');
-        mkdir('customtask');
+//        mkdir('customcommand');
+//        mkdir('customrole');
+//        mkdir('customtask');
         mkdir('tests');
         mkdir('docs');
         mkdir('examples');
@@ -468,6 +463,7 @@
         file_put_contents('extrasetup.php', "<?php
 /**
  * This file is used to provide extra files/packages outside package.xml
+ * More information: http://pear.php.net/manual/en/pyrus.commands.package.php#pyrus.commands.package.extrasetup
  */
 \$extrafiles = array();

@@ -493,6 +489,7 @@
         file_put_contents('packagexmlsetup.php', "<?php
 /**
  * Extra package.xml settings such as dependencies.
+ * More information: http://pear.php.net/manual/en/pyrus.commands.make.php#pyrus.commands.make.packagexmlsetup
  */
 /**
  * for example:
@@ -513,6 +510,7 @@
 /**
  * If your package does special stuff in phar format, use this file.  Remove if
  * no phar format is ever generated
+ * More information: http://pear.php.net/manual/en/pyrus.commands.package.php#pyrus.commands.package.stub
  */
 if (version_compare(phpversion(), '5.3.1', '<')) {
     if (substr(phpversion(), 0, 5) != '5.3.1') {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.