Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove package.ph

git-svn-id: http://svn.php.net/repository/pear/packages/XML_Beautifier/trunk@304862 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit dabd9dd4ab8eb251da24dd7b58542ae1758700c0 1 parent 7354fc5
Daniel O'Connor CloCkWeRX authored
Showing with 0 additions and 134 deletions.
  1. +0 −63 package.php
  2. +0 −71 package2.php
63 package.php
View
@@ -1,63 +0,0 @@
-<?php
-
-require_once 'PEAR/PackageFileManager.php';
-
-$version = '1.2.0';
-$state = 'stable';
-
-$notes = <<<EOT
-- switched to BSD License
-- switch to package.xml v2
-- PEAR CS cleanup
-- Fixed Bug #1009: Data in <![CDATA[ ... ]]> [schst]
-- Fixed Bug #1232: The standalone attributes turned to 'on' [schst]
-EOT;
-
-$description = <<<EOT
-XML_Beautifier will add indentation and linebreaks to you XML files, replace all entities, format your comments and makes your document easier to read.
-You can influence the way your document is beautified with several options, ranging from indentation to changing the case of tags and normalizing your comments.
-EOT;
-
-$package = new PEAR_PackageFileManager();
-
-$result = $package->setOptions(array(
- 'package' => 'XML_Beautifier',
- 'summary' => 'Class to format XML documents.',
- 'description' => $description,
- 'version' => $version,
- 'state' => $state,
- 'license' => 'BSD License',
- 'filelistgenerator' => 'cvs',
- 'ignore' => array('package.php', 'package.xml', 'package2.php', 'package2.xml'),
- 'notes' => $notes,
- 'simpleoutput' => true,
- 'baseinstalldir' => 'XML',
- 'packagedirectory' => './',
- 'dir_roles' => array('examples' => 'doc')
- ));
-
-/**
-if (PEAR::isError($result)) {
- echo $result->getMessage();
- die();
-}
-**/
-
-$package->addMaintainer('schst', 'lead', 'Stephan Schmidt', 'schst@php-tools.net');
-$package->addMaintainer('ashnazg', 'lead', 'Chuck Burgess', 'ashnazg@php.net');
-
-$package->addDependency('XML_Parser', '', 'has', 'pkg', false);
-$package->addDependency('XML_Util', '0.5', 'ge', 'pkg', false);
-$package->addDependency('php', '4.2.0', 'ge', 'php', false);
-
-if (isset($_GET['make']) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) {
- $result = $package->writePackageFile();
-} else {
- $result = $package->debugPackageFile();
-}
-
-if (PEAR::isError($result)) {
- echo $result->getMessage();
- die();
-}
-?>
71 package2.php
View
@@ -1,71 +0,0 @@
-<?php
-
-require_once 'PEAR/PackageFileManager2.php';
-PEAR::setErrorHandling(PEAR_ERROR_DIE);
-
-$desc = <<<EOT
-XML_Beautifier will add indentation and linebreaks to you XML files, replace all entities, format your comments and makes your document easier to read.
-You can influence the way your document is beautified with several options, ranging from indentation to changing the case of tags and normalizing your comments.
-EOT;
-
-$version = '1.2.0';
-$apiver = '1.2.0';
-$state = 'stable';
-
-$notes = <<<EOT
-- switched to BSD License
-- switch to package.xml v2
-- PEAR CS cleanup
-- Fixed Bug #1009: Data in <![CDATA[ ... ]]> [schst]
-- Fixed Bug #1232: The standalone attributes turned to 'on' [schst]
-EOT;
-
-$package = PEAR_PackageFileManager2::importOptions(
- 'package2.xml',
- array(
- 'filelistgenerator' => 'cvs',
- 'changelogoldtonew' => false,
- 'simpleoutput' => true,
- 'baseinstalldir' => 'XML',
- 'packagefile' => 'package2.xml',
- 'packagedirectory' => '.'));
-
-if (PEAR::isError($result)) {
- echo $result->getMessage();
- die();
-}
-
-$package->clearDeps();
-
-$package->setPackage('XML_Beautifier');
-$package->setPackageType('php');
-$package->setSummary('Class to format XML documents.');
-$package->setDescription($desc);
-$package->setChannel('pear.php.net');
-$package->setLicense('BSD License', 'http://opensource.org/licenses/bsd-license');
-$package->setAPIVersion($apiver);
-$package->setAPIStability($state);
-$package->setReleaseVersion($version);
-$package->setReleaseStability($state);
-$package->setNotes($notes);
-$package->setPhpDep('4.2.0');
-$package->setPearinstallerDep('1.3.0');
-$package->addPackageDepWithChannel('required', 'XML_Parser', 'pear.php.net', '1.0');
-$package->addPackageDepWithChannel('required', 'XML_Util', 'pear.php.net', '0.5');
-$package->addIgnore(array('package.php', 'package2.php', 'package.xml', 'package2.xml'));
-$package->addReplacement('Beautifier.php', 'package-info', '@package_version@', 'version');
-$package->addReplacement('Beautifier/Tokenizer.php', 'package-info', '@package_version@', 'version');
-$package->addReplacement('Beautifier/Renderer.php', 'package-info', '@package_version@', 'version');
-$package->addReplacement('Beautifier/Renderer/Plain.php', 'package-info', '@package_version@', 'version');
-$package->generateContents();
-
-if ($_SERVER['argv'][1] == 'make') {
- $result = $package->writePackageFile();
-} else {
- $result = $package->debugPackageFile();
-}
-
-if (PEAR::isError($result)) {
- echo $result->getMessage();
- die();
-}
Please sign in to comment.
Something went wrong with that request. Please try again.