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

Source for file buildPackage.php

Documentation is available at buildPackage.php

  1. <?php
  2. require_once 'PEAR/PackageFileManager.php';
  3. $fm = new PEAR_PackageFileManager();
  4. $options = array(
  5.                 'packagefile' => 'package.xml',
  6.                 'state' => 'alpha',
  7.                 'version' => '0.1.0',
  8.                 'notes' => 'First release',
  9.                 'filelistgenerator' => 'file',
  10.                 'baseinstalldir' => 'Services',
  11.                 'package' => 'Services_Google',
  12.                 'summary' => 'Provides access to the Google Web APIs',
  13.                 'description' => 'Allows easy access to the Google Web APIs for the search engine, spelling suggestions, and cache.
  14.                 To use the package you\'ll need an API key from http://www.google.com/apis/.',
  15.                 'doctype' => 'http://pear.php.net/dtd/package-1.0',
  16.                 'packagedirectory' => 'c:/documents and settings/jon/my documents/Open Source/pear/Services_Google',
  17.                 'license' => 'PHP License',
  18.                 'changelogoldtonew' => true,
  19.                 'roles' =>
  20.                   array(
  21.                       'php' => 'php',
  22.                       '*' => 'data',
  23.                        ),
  24.                 'dir_roles' =>
  25.                   array(
  26.                       'examples' => 'doc',
  27.                        )
  28.                 );
  29. $e $fm->setOptions($options);
  30. if (PEAR::isError($e)) {
  31.     echo $e->getMessage();
  32.     die();
  33. }
  34. $fm->addMaintainer('jellybob''lead''Jon Wood''jon@jellybob.co.uk');
  35. $e $fm->writePackageFile();
  36. if (PEAR::isError($e)) {
  37.     echo $e->getMessage();
  38.     die();
  39. }
  40. ?>

Documentation generated on Mon, 11 Mar 2019 13:54:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.