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

Source for file generate_package_xml.php

Documentation is available at generate_package_xml.php

  1. <?php
  2. require_once('PEAR/PackageFileManager.php');
  3. require_once 'PEAR/PackageFileManager/Cvs.php';
  4.  
  5. $pkg = new PEAR_PackageFileManager;
  6.  
  7. $packagedir dirname(__FILE__);
  8. $self basename(__FILE__);
  9.  
  10. $summary = <<<EOT
  11. Library to create MP3 playlists on the fly, several formats supported including XML, RSS and XHTML
  12. EOT;
  13.  
  14. $desc = <<<EOT
  15. MP3_Playlist is a php library to facilitate the creation and to some
  16. extend the rendering of MP3 playlists. It scans a local folder with
  17. all the MP3 files and outputs the playlist in several formats
  18. including M3U, SMIL, XML, XHTML with the possibility to backup the
  19. lists on the fly with an SQLite DB.
  20. EOT;
  21.  
  22. $notes = <<<EOT
  23. * Fixed bug #8369: Send does not take care of filename parameter
  24. * Minor fixed on MP3_Playlist class.
  25. * Minor fixed on examples
  26. * Added test files
  27. EOT;
  28.  
  29. $options = array(
  30.     'simpleoutput'      => true,
  31.     'package'           => 'MP3_Playlist',
  32.     'license'           => 'PHP License',
  33.     'baseinstalldir'    => '',
  34.     'version'           => '0.5.1alpha1',
  35.     'packagedirectory'  => $packagedir,
  36.     'pathtopackagefile' => $packagedir,
  37.     'state'             => 'alpha',
  38.     'filelistgenerator' => 'Cvs',
  39.     'notes'             => $notes,
  40.     'summary'           => $summary,
  41.     'description'       => str_replace("\n"''$desc),
  42.     'dir_roles'         => array(
  43.         'docs'      => 'doc',
  44.         'data'      => 'data',
  45.         'tests'     => 'test'
  46.     ),
  47.     'ignore'            => array(
  48.         'package.xml',
  49.         'package2.xml',
  50.         '*.tgz',
  51.         $self
  52.     )
  53. );
  54.  
  55. $e $pkg->setOptions($options);
  56. if (PEAR::isError($e)) {
  57.     echo $e->getMessage();
  58.     die;
  59. }
  60.  
  61. // hack until they get their shit in line with docroot role
  62. $pkg->addRole('tpl''php');
  63. $pkg->addRole('png''php');
  64. $pkg->addRole('gif''php');
  65. $pkg->addRole('jpg''php');
  66. $pkg->addRole('css''php');
  67. $pkg->addRole('js''php');
  68. $pkg->addRole('ini''php');
  69. $pkg->addRole('inc''php');
  70. $pkg->addRole('afm''php');
  71. $pkg->addRole('pkg''doc');
  72. $pkg->addRole('cls''doc');
  73. $pkg->addRole('proc''doc');
  74. $pkg->addRole('txt''doc');
  75. $pkg->addRole('sh''script');
  76.  
  77. $pkg->addMaintainer('gurugeek''lead''David Costa''gurugeek@php.net');
  78. $pkg->addMaintainer('firman''lead''Firman Wandayandi''firman@php.net');
  79.  
  80. $pkg->addDependency('PHP''5.0.0''ge''php');
  81. $pkg->addDependency('PEAR''1.3.0''ge''pkg');
  82. $pkg->addDependency('Net_URL''1.0.14''ge''pkg');
  83. $pkg->addDependency('MP3_Id''1.1.4''ge''pkg');
  84.  
  85. $e $pkg->addGlobalReplacement('package-info''@package_version@''version');
  86.  
  87. $e $pkg->writePackageFile();
  88. if (PEAR::isError($e)) {
  89.     echo $e->getMessage();
  90. }
  91. ?>

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