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

Source for file generate_package_xml.php

Documentation is available at generate_package_xml.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker */
  3. // CVS: $Id: generate_package_xml.php 213799 2006-05-26 17:26:52Z firman $
  4.  
  5. require_once 'PEAR/PackageFileManager.php';
  6.  
  7. $pkg = new PEAR_PackageFileManager;
  8.  
  9. $packagedir dirname(__FILE__);
  10. $self basename(__FILE__);
  11.  
  12. $desc = <<<EOT
  13. DB_Sqlite_Tools is an object oriented interface to effectively manage and backup
  14. Sqlite databases.It extends the existing functionality by providing a
  15. comprehensive solution for database backup, live replication, export in XML
  16. format, performance optmization and other functionalities like the insertion and
  17. retrieval of encrypted data from an Sqlite database without any external
  18. extension
  19. EOT;
  20.  
  21. $notes = <<<EOT
  22. * Fixed bug: print_r() with no return value
  23. EOT;
  24.  
  25. $summary = <<<EOT
  26. DB_Sqlite_Tools is an object oriented interface to effectively manage and backup Sqlite databases.
  27. EOT;
  28.  
  29. $options = array(
  30.     'simpleoutput'      => true,
  31.     'doctype'           => 'D:\xSrv\www\include\pear\pear\data\PEAR\package.dtd',
  32.     'package'           => 'DB_Sqlite_Tools',
  33.     'license'           => 'BSD License',
  34.     'baseinstalldir'    => '',
  35.     'version'           => '0.1.5',
  36.     'packagedirectory'  => $packagedir,
  37.     'pathtopackagefile' => $packagedir,
  38.     'state'             => 'alpha',
  39.     'filelistgenerator' => 'cvs',
  40.     'notes'             => $notes,
  41.     'summary'           => $summary,
  42.     'description'       => str_replace("\n"''$desc),
  43.     'dir_roles'         => array(
  44.         'docs'          => 'doc',
  45.         'data'          => 'data'
  46.     ),
  47.     'ignore'            => array(
  48.         'package.xml',
  49.         '*.tgz',
  50.         $self,
  51.         'tests/'
  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('morbid''constributor''Ashley Hewson''morbidness@gmail.com');
  79. $pkg->addMaintainer('negora''constributor''Radu Negoescu''negora@dawnideas.com');
  80. $pkg->addMaintainer('firman''lead''Firman Wandayandi''firman@php.net');
  81.  
  82. $pkg->addDependency('PHP''5.0.0''ge''php');
  83.  
  84. $e $pkg->addGlobalReplacement('package-info''@package_version@''version');
  85.  
  86. $e $pkg->writePackageFile();
  87. if (PEAR::isError($e)) {
  88.     echo $e->getMessage();
  89. }
  90.  
  91. /*
  92.  * Local variables:
  93.  * mode: php
  94.  * tab-width: 4
  95.  * c-basic-offset: 4
  96.  * c-hanging-comment-ender-p: nil
  97.  * End:
  98.  */
  99. ?>

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