package.php #1

  • //
  • guest/
  • tony_smith/
  • perforce/
  • API/
  • php/
  • package.php
  • View
  • Commits
  • Open Download .zip Download (1 KB)
<?php

require_once 'PEAR/PackageFileManager.php';
require_once 'Console/Getopt.php';

$version = '0.3.1';
$notes = <<<EOT
Corrected some compilation issues with older versions of PHP under Windows.
EOT;

$changelog = <<<EOT
Corrected some compilation issues with older versions of PHP under Windows.
EOT;

$description = <<<EOT
The Perforce extension wraps the Perforce C/C++ API.  This gives PHP developers direct access to the native Perforce client functions.
EOT;

$package = new PEAR_PackageFileManager();

$result = $package->setOptions(array(
    'package'           => 'perforce',
    'summary'           => 'Perforce API Extension',
    'description'       => $description,
    'version'           => $version,
    'state'             => 'alpha',
    'license'           => 'BSD License',
    'filelistgenerator' => 'file',
    'ignore'            => array('package.php'),
    'notes'             => $notes,
    'changelognotes'    => $changelog,
    'changelogoldtonew' => false,
	'simpleoutput'		=> true,
    'baseinstalldir'    => '/',
    'packagedirectory'  => ''));

if (PEAR::isError($result)) {
    echo $result->getMessage();
    die();
}

$package->addMaintainer('jon', 'lead', 'Jon Parise', 'jon@php.net');

if ($_SERVER['argv'][1] == 'commit') {
    $result = $package->writePackageFile();
} else {
    $result = $package->debugPackageFile();
}

if (PEAR::isError($result)) {
    echo $result->getMessage();
    die();
}
# Change User Description Committed
#1 4595 Tony Smith Copy Jon Parise's PHP integration into my directory.
//guest/jon_parise/api/php/package.php
#5 4427 Jon_Parise Corrected some compilation issues with older versions of PHP under
Windows.

Submitted by: ken@demarest.com
#4 4325 Jon_Parise Updating the package.xml file for the 0.3.0 release.
#3 4295 Jon_Parise The package.xml file should have noted that this package is being
released under the BSD license, not the PHP license.
#2 4294 Jon_Parise Adding an example command line script and bumping the package's version
number to 1.2.0.
#1 4291 Jon_Parise Initial version of the Perforce extension for PHP.