mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
* remove getCommands() from here
* added options to "pear cvstag": -q -Q -d -F
This commit is contained in:
parent
454a31121c
commit
a31e8b7373
@ -63,7 +63,24 @@ called package.xml).
|
||||
'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 @@ called package.xml).
|
||||
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 @@ called package.xml).
|
||||
$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]);
|
||||
|
Loading…
Reference in New Issue
Block a user