Class PEAR_Command_Package

Description

Located in /maintenance/libraries/pear/PEAR/Command/Package.php (line 25)

PEAR
   |
   --PEAR_Command_Common
      |
      --PEAR_Command_Package
Variable Summary
 mixed $commands
 mixed $output
Method Summary
 PEAR_Command_Package PEAR_Command_Package (mixed &$ui, mixed &$config)
 void doCvsDiff (mixed $command, mixed $options, mixed $params)
 void doCvsTag (mixed $command, mixed $options, mixed $params)
 void doMakeRPM (mixed $command, mixed $options, mixed $params)
 void doPackage (mixed $command, mixed $options, mixed $params)
 void doPackageDependencies (mixed $command, mixed $options, mixed $params)
 void doPackageValidate (mixed $command, mixed $options, mixed $params)
 void doRunTests (mixed $command, mixed $options, mixed $params)
 void doSign (mixed $command, mixed $options, mixed $params)
 void _displayValidationResults (mixed $err, mixed $warn, [mixed $strict = false])
Variables
mixed $commands = array(
'package' => array(
'summary' => 'Build Package',
'function' => 'doPackage',
'shortcut' => 'p',
'options' => array(
'nocompress' => array(
'shortopt' => 'Z',
'doc' => 'Do not gzip the package file'
),'showname'=>array('shortopt'=>'n','doc'=>'Print the name of the packaged file.',),),'doc'=>'[descfile]
Creates a PEAR package from its description file (usually called
package.xml).
'),'package-validate'=>array('summary'=>'Validate Package Consistency','function'=>'doPackageValidate','shortcut'=>'pv','options'=>array(),'doc'=>'
',),'cvsdiff'=>array('summary'=>'Run a "cvs diff" for all files in a package','function'=>'doCvsDiff','shortcut'=>'cd','options'=>array('quiet'=>array('shortopt'=>'q','doc'=>'Be quiet',),'reallyquiet'=>array('shortopt'=>'Q','doc'=>'Be really quiet',),'date'=>array('shortopt'=>'D','doc'=>'Diff against revision of DATE','arg'=>'DATE',),'release'=>array('shortopt'=>'R','doc'=>'Diff against tag for package release REL','arg'=>'REL',),'revision'=>array('shortopt'=>'r','doc'=>'Diff against revision REV','arg'=>'REV',),'context'=>array('shortopt'=>'c','doc'=>'Generate context diff',),'unified'=>array('shortopt'=>'u','doc'=>'Generate unified diff',),'ignore-case'=>array('shortopt'=>'i','doc'=>'Ignore case, consider upper- and lower-case letters equivalent',),'ignore-whitespace'=>array('shortopt'=>'b','doc'=>'Ignore changes in amount of white space',),'ignore-blank-lines'=>array('shortopt'=>'B','doc'=>'Ignore changes that insert or delete blank lines',),'brief'=>array('doc'=>'Report only whether the files differ, no details',),'dry-run'=>array('shortopt'=>'n','doc'=>'Don\'t do anything, just pretend',),),'doc'=>'<package.xml>
Compares all the files in a package. Without any options, this
command will compare the current code with the last checked-in code.
Using the -r or -R option you may compare the current code with that
of a specific release.
',),'cvstag'=>array('summary'=>'Set CVS Release Tag','function'=>'doCvsTag','shortcut'=>'ct','options'=>array('quiet'=>array('shortopt'=>'q','doc'=>'Be quiet',),'reallyquiet'=>array('shortopt'=>'Q','doc'=>'Be really quiet',),'slide'=>array('shortopt'=>'F','doc'=>'Move (slide) tag if it exists',),'delete'=>array('shortopt'=>'d','doc'=>'Remove tag',),'dry-run'=>array('shortopt'=>'n','doc'=>'Don\'t do anything, just pretend',),),'doc'=>'<package.xml>
Sets a CVS tag on all files in a package. Use this command after you have
packaged a distribution tarball with the "package" command to tag what
revisions of what files were in that release. If need to fix something
after running cvstag once, but before the tarball is released to the public,
use the "slide" option to move the release tag.
',),'run-tests'=>array('summary'=>'Run Regression Tests','function'=>'doRunTests','shortcut'=>'rt','options'=>array('recur'=>array('shortopt'=>'r','doc'=>'Run tests in child directories, recursively. 4 dirs deep maximum',)),'doc'=>'[testfile|dir ...]
Run regression tests with PHP\'s regression testing script (run-tests.php).',),'package-dependencies'=>array('summary'=>'Show package dependencies','function'=>'doPackageDependencies','shortcut'=>'pd','options'=>array(),'doc'=>'
List all depencies the package has.'),'sign'=>array('summary'=>'Sign a package distribution file','function'=>'doSign','shortcut'=>'si','options'=>array(),'doc'=>'<package-file>
Signs a package distribution (.tar or .tgz) file with GnuPG.',),'makerpm'=>array('summary'=>'Builds an RPM spec file from a PEAR package','function'=>'doMakeRPM','shortcut'=>'rpm','options'=>array('spec-template'=>array('shortopt'=>'t','arg'=>'FILE','doc'=>'Use FILE as RPM spec file template'),'rpm-pkgname'=>array('shortopt'=>'p','arg'=>'FORMAT','doc'=>'Use FORMAT as format string for RPM package name, %s is replaced
by the PEAR package name, defaults to "PEAR::%s".',),),'doc'=>'<package-file>

Creates an RPM .spec file for wrapping a PEAR package inside an RPM
package. Intended to be used from the SPECS directory, with the PEAR
package tarball in the SOURCES directory:

$ pear makerpm ../SOURCES/Net_Socket-1.0.tgz
Wrote RPM spec file PEAR::Net_Geo-1.0.spec
$ rpm -bb PEAR::Net_Socket-1.0.spec
...
Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
',),)
(line 29)
mixed $output (line 185)

Inherited Variables

Inherited from PEAR_Command_Common

PEAR_Command_Common::$config
PEAR_Command_Common::$ui
PEAR_Command_Common::$_deps_rel_trans
PEAR_Command_Common::$_deps_type_trans
Methods
Constructor PEAR_Command_Package (line 195)

PEAR_Command_Package constructor.

  • access: public
PEAR_Command_Package PEAR_Command_Package (mixed &$ui, mixed &$config)
doCvsDiff (line 344)
void doCvsDiff (mixed $command, mixed $options, mixed $params)
doCvsTag (line 285)
void doCvsTag (mixed $command, mixed $options, mixed $params)
doMakeRPM (line 592)
void doMakeRPM (mixed $command, mixed $options, mixed $params)
doPackage (line 224)
void doPackage (mixed $command, mixed $options, mixed $params)
doPackageDependencies (line 469)
void doPackageDependencies (mixed $command, mixed $options, mixed $params)
doPackageValidate (line 255)
void doPackageValidate (mixed $command, mixed $options, mixed $params)
doRunTests (line 407)
void doRunTests (mixed $command, mixed $options, mixed $params)
doSign (line 528)
void doSign (mixed $command, mixed $options, mixed $params)
_displayValidationResults (line 204)
void _displayValidationResults (mixed $err, mixed $warn, [mixed $strict = false])

Inherited Methods

Inherited From PEAR_Command_Common

 PEAR_Command_Common::PEAR_Command_Common()
 PEAR_Command_Common::getCommands()
 PEAR_Command_Common::getGetoptArgs()
 PEAR_Command_Common::getHelp()
 PEAR_Command_Common::getHelpArgs()
 PEAR_Command_Common::getOptions()
 PEAR_Command_Common::getShortcuts()
 PEAR_Command_Common::run()

Documentation generated on Fri, 10 Dec 2004 18:26:00 +0000 by phpDocumentor 1.3.0RC3