svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/ Commands.php
| From: | Brett Bieber | Date: | Mon, 12 Jul 2010 13:58:20 +0000 |
| Subject: | svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/ Commands.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9564@lists.php.net to get a copy of this message | ||
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') {