Net_URL_Mapper
[ class tree: Net_URL_Mapper ] [ index: Net_URL_Mapper ] [ all elements ]

Source for file update_package.xml.php

Documentation is available at update_package.xml.php

  1. <?php
  2. require_once('PEAR/PackageFileManager2.php');
  3. PEAR::setErrorHandling(PEAR_ERROR_DIE);
  4.  
  5. $packagexml = PEAR_PackageFileManager2::importOptions(dirname(__FILE__).'/../''package.xml',
  6. array(
  7.     'baseinstalldir' => 'Net/URL',
  8.     'packagedirectory' => dirname(__FILE__).'/..',
  9.     'filelistgenerator' => 'file',
  10.     'ignore' => array('.svn/''scripts/''*.plex'),
  11.     'dir_roles' => array('tests' => 'test'),
  12.     ));
  13.  
  14. $version '0.9.3';
  15.  
  16. $packagexml->setPackage('Net_URL_Mapper');
  17. $packagexml->setSummary('Provides a simple and flexible way to build nice URLs for web applications.');
  18. $packagexml->setDescription(
  19. 'Net_URL_Mapper provides a simple and flexible way to build nice URLs for your web applications.
  20.  
  21. The URL syntax is similar to what can be found in Ruby on Rails or Python Routes module 
  22. and as such, this package can be compared to what they call a router. Still, Net_URL_Mapper 
  23. does not perform the dispatching like these frameworks and therefore can be used with your 
  24. own router.');
  25.  
  26. $packagexml->setUri('http://src.mamasam.com/packages/Net_URL_Mapper-'.$version);
  27. $packagexml->setAPIVersion('1.0.0');
  28. $packagexml->setReleaseVersion($version);
  29. $packagexml->setReleaseStability('beta');
  30. $packagexml->setAPIStability('stable');
  31. $packagexml->setNotes("
  32. - Remove scriptname if it is present in the URL when matching
  33. ");
  34. $packagexml->setPackageType('php');
  35.  
  36. $packagexml->setPhpDep('5.1.0');
  37. $packagexml->setPearinstallerDep('1.4.3');
  38.  
  39. $packagexml->addPackageDepWithChannel('required''Net_URL''pear.php.net''1.0.14');
  40.  
  41. $packagexml->addMaintainer('lead''mansion''Bertrand Mansion''golgote@mamasam.com');
  42. $packagexml->setLicense('New BSD License''http://opensource.org/licenses/bsd-license.php');
  43. $packagexml->generateContents();
  44. $packagexml->addGlobalReplacement('package-info''@package_version@''version');
  45.  
  46. if (isset($_GET['make']|| (isset($_SERVER['argv']&& @$_SERVER['argv'][1== 'make')) {
  47.     $packagexml->writePackageFile();
  48. else {
  49.     $packagexml->debugPackageFile();
  50. }
  51. ?>

Documentation generated on Mon, 11 Mar 2019 15:41:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.