cvs: pear /PEAR_PackageFileManager/examples basicConvert.php

From: Date: Sat, 14 Oct 2006 08:35:07 +0000
Subject: cvs: pear /PEAR_PackageFileManager/examples basicConvert.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42536@lists.php.net to get a copy of this message
farell Sat Oct 14 08:35:07 2006 UTC Modified files: /pear/PEAR_PackageFileManager/examples basicConvert.php Log: example to convert HTML_AJAX package xml 1.0 to 2.0 this script is equivalent (with PFM 1.6.0b5) of command line : $ pear convert [descfile1] [descfile2] http://cvs.php.net/viewvc.cgi/pear/PEAR_PackageFileManager/examples/basicConvert.php?r1=1.1&r2=1.2&diff_format=u Index: pear/PEAR_PackageFileManager/examples/basicConvert.php diff -u pear/PEAR_PackageFileManager/examples/basicConvert.php:1.1 pear/PEAR_PackageFileManager/examples/basicConvert.php:1.2 --- pear/PEAR_PackageFileManager/examples/basicConvert.php:1.1 Tue May 16 21:49:39 2006 +++ pear/PEAR_PackageFileManager/examples/basicConvert.php Sat Oct 14 08:35:07 2006 @@ -2,7 +2,7 @@ /** * Basic convert package.xml 1.0 to package.xml 2.0 * - * @version $Id: basicConvert.php,v 1.1 2006/05/16 21:49:39 farell Exp $ + * @version $Id: basicConvert.php,v 1.2 2006/10/14 08:35:07 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package PEAR_PackageFileManager * @ignore @@ -10,7 +10,7 @@ require_once 'PEAR/PackageFileManager2.php'; -//PEAR::setErrorHandling(PEAR_ERROR_DIE); +PEAR::setErrorHandling(PEAR_ERROR_DIE); // Configuration of PEAR::PackageFileManager $optionsUpdate = array( @@ -18,14 +18,13 @@ 'clearcontents' => false, 'baseinstalldir' => 'HTML', 'simpleoutput' => true, - 'filelistgenerator' => 'cvs', + 'filelistgenerator' => 'file', 'changelogoldtonew' => false, 'packagefile' => 'package2.xml' ); // Location of your package.xml 1.0 version -$packagefile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'package_DB-1.7.6.xml'; -$packagefile = 'D:\php\pear\HTML_Progress2\package.xml'; +$packagefile = 'C:\PEAR\HTML\HTML_AJAX-0.5.0\package.xml'; $packagefileExists = file_exists($packagefile);

« previous php.pear.cvs (#42536) next »