Source for file ethna_make_package.php
Documentation is available at ethna_make_package.php
-  *  package.xml generator for Ethna 
-  *  @license    http://www.opensource.org/licenses/bsd-license.php The BSD License 
-  *  @version    $Id: 18ade19a1b7a57f3c5b025d1adb9d9fd6cf033aa $ 
- require_once 'Console/Getopt.php'; 
- require_once 'PEAR/PackageFileManager2.php'; 
- require_once 'PEAR/PackageFileManager/File.php';   // avoid bugs 
- $arg_list - =  Console_Getopt::readPHPArgv();
 
- $r - =  Console_Getopt::getopt($arg_list, "abov", array("alpha", "beta", "old-package", "version"));
 
- foreach ($r[0] as $opt) { 
-     if ($opt[0] - ==  "a"- ||  $opt[0]- ==  "--alpha") {
 
-     if ($opt[0] - ==  "b"- ||  $opt[0]- ==  "--beta") {
 
-     if ($opt[0] - ==  "o"- ||  $opt[0]- ==  "--old-package") {
 
-     if ($opt[0] - ==  "v"- ||  $opt[0]- ==  "--version") {
 
- $description - =  'Ethna Web Application Framework';
 
- require_once dirname(- __FILE__ )- .  '/../Ethna.php';
 
- if ($state - ==  'alpha'- ||  $state- ==  'beta') {
 
-     $version - =  $major_version- .  "."- .  $minor_version- .  $state- .  strftime('%Y%m%d%H');
 
-     $version - =  $major_version- .  "."- .  $minor_version;
 
-     'baseinstalldir' - =>  'Ethna',
 
-     'filelistgenerator' - =>  'file',
 
-         'CVS/', '.svn/', 'package.xml', 'ethna_make_package.php', 'ethna_make_package.sh', '*optional_package*', 'coverage/', 
-         '.gitignore', '.gitattributes', 
-     'changelogoldtonew' - =>  false,
 
-     'exceptions' - =>  array('README'- =>  'doc', 'LICENSE'- =>  'doc', 'CHANGES'- =>  'doc',),
 
-     'description' - =>  $description,
 
-     'exceptions' - =>  array('bin/ethna.sh'- =>  'script', 'bin/ethna.bat'- =>  'script'),
 
-     'installexceptions' - =>  array('bin/ethna.sh'- =>  '/', 'bin/ethna.bat'- =>  '/'),
 
-     'installas' - =>  array('bin/ethna.sh'- =>  'ethna', 'bin/ethna.bat'- =>  'ethna.bat'),
 
- $ethna_channel - =  'pear.ethna.jp';
 
- $packagexml - =  new PEAR_PackageFileManager2();
 
- $packagexml->setOptions($config); 
- $packagexml->setPackage($package); 
- $packagexml->setSummary('Ethna PHP Framework Package'); 
- $packagexml->setDescription($description); 
- $packagexml->setChannel($ethna_channel); 
- $packagexml->setAPIVersion($version); 
- $packagexml->setReleaseVersion($version); 
- $packagexml->setReleaseStability($state); 
- $packagexml->setAPIStability($state); 
- $packagexml->setNotes('Ethna PHP Web Application Framework'); 
- $packagexml->setPackageType('php'); 
- $packagexml->addRole('*', 'php'); 
- $packagexml->setPhpDep('5.2.0'); 
- $packagexml->setPearinstallerDep('1.9.0'); 
- $packagexml->addPackageDepWithChannel('optional', 'DB', 'pear.php.net'); 
- $packagexml->addPackageDepWithChannel('optional', 'Smarty', $ethna_channel); 
- $packagexml->addPackageDepWithChannel('optional', 'simpletest', $ethna_channel); 
- $packagexml->addPackageDepWithChannel('optional', 'Smarty3', $ethna_channel); 
- $packagexml->addMaintainer('lead', 'sotarok' , 'Sotaro Karasawa', 'sotaro.k@gmail.com'); 
- $packagexml->setLicense('The BSD License', 'http://www.opensource.org/licenses/bsd-license.php'); 
- $packagexml->addReplacement('bin/ethna.bat', 'pear-config', '@PEAR-DIR@', 'php_dir'); 
- $packagexml->addReplacement('bin/ethna.bat', 'pear-config', '@PHP-BIN@', 'bin_dir'); 
- $packagexml->addReplacement('bin/ethna.sh', 'pear-config', '@PHP-BINARY@', 'php_bin'); 
- $packagexml->addReplacement('bin/ethna.sh', 'pear-config', '@PEAR-DIR@', 'php_dir'); 
- $packagexml->addReplacement('bin/ethna.sh', 'pear-config', '@PHP-BIN@', 'bin_dir'); 
- $packagexml->addRelease(); 
- $packagexml->setOSInstallCondition('windows'); 
- $packagexml->addInstallAs('bin/ethna.bat', 'ethna.bat'); 
- $packagexml->addIgnoreToRelease('bin/ethna.sh'); 
- $packagexml->addRelease(); 
- $packagexml->addInstallAs('bin/ethna.sh', 'ethna'); 
- $packagexml->addIgnoreToRelease('bin/ethna.bat'); 
- $packagexml->generateContents(); 
-     if (method_exists($packagexml, 'exportCompatiblePackageFile1')) { 
-         $pkg - = & $packagexml->exportCompatiblePackageFile1();
 
-         $pkg->writePackageFile(); 
-         //  PEAR package version 1 is not supported over PEAR 1.8.0. 
-         echo  "WARNING: PEAR package version 1 is not supported in this PEAR version.\n";
-     $packagexml->writePackageFile(); 
 
	
		Documentation generated on Fri, 11 Nov 2011 03:58:06 +0900 by phpDocumentor 1.4.3