cvs: php4 /pear/PEAR/Command Package.php
| From: | Stig Bakken | Date: | Mon, 20 May 2002 10:31:13 +0000 |
| Subject: | cvs: php4 /pear/PEAR/Command Package.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3961@lists.php.net to get a copy of this message | ||
ssb Mon May 20 06:31:13 2002 EDT
Modified files:
/php4/pear/PEAR/Command Package.php
Log:
* remove getCommands() from here
* added options to "pear cvstag": -q -Q -d -F
Index: php4/pear/PEAR/Command/Package.php
diff -u php4/pear/PEAR/Command/Package.php:1.25 php4/pear/PEAR/Command/Package.php:1.26
--- php4/pear/PEAR/Command/Package.php:1.25 Sun May 19 20:15:52 2002
+++ php4/pear/PEAR/Command/Package.php Mon May 20 06:31:12 2002
@@ -16,7 +16,7 @@
// | Author: Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: Package.php,v 1.25 2002/05/20 00:15:52 ssb Exp $
+// $Id: Package.php,v 1.26 2002/05/20 10:31:12 ssb Exp $
require_once 'PEAR/Common.php';
require_once 'PEAR/Command/Common.php';
@@ -63,7 +63,24 @@
'cvstag' => array(
'summary' => 'Set CVS Release Tag',
'function' => 'doCvsTag',
- 'options' => array(),
+ 'options' => array(
+ 'quiet' => array(
+ 'shortopt' => 'q',
+ 'doc' => 'Be quiet',
+ ),
+ 'reallyquiet' => array(
+ 'shortopt' => 'Q',
+ 'doc' => 'Be really quiet',
+ ),
+ 'slide' => array(
+ 'shortopt' => 'F',
+ 'doc' => 'Move tag if it exists',
+ ),
+ 'delete' => array(
+ 'shortopt' => 'd',
+ 'doc' => 'Remote tag',
+ ),
+ ),
'doc' => '',
),
'run-tests' => array(
@@ -101,21 +118,6 @@
return true;
}
- /**
- * Return a list of all the commands defined by this class.
- * @return array list of commands
- * @access public
- */
- function getCommands()
- {
- return array('package' => 'Build Package',
- 'package-info' => 'Show Package Info',
- 'package-list' => 'List Files in Package',
- 'package-validate' => 'Validate Package',
- 'cvstag' => 'Set CVS Release Tag',
- 'run-tests' => 'Run Regression Tests');
- }
-
function doPackage($command, $options, $params)
{
include_once 'PEAR/Packager.php';
@@ -330,17 +332,17 @@
$cvstag = "RELEASE_$cvsversion";
$files = array_keys($info['filelist']);
$command = "cvs";
- if (isset($options['q'])) {
+ if (isset($options['quiet'])) {
$command .= ' -q';
}
- if (isset($options['Q'])) {
+ if (isset($options['reallyquiet'])) {
$command .= ' -Q';
}
$command .= ' tag';
- if (isset($options['F'])) {
+ if (isset($options['slide'])) {
$command .= ' -F';
}
- if (isset($options['d'])) {
+ if (isset($options['delete'])) {
$command .= ' -d';
}
$command .= ' ' . $cvstag . ' ' . escapeshellarg($params[0]);