Source for file package.php
Documentation is available at package.php
* Script to generate package.xml file
* Taken from PEAR::Log, thanks Jon ;)
require_once 'PEAR/PackageFileManager.php';
require_once 'Console/Getopt.php';
* fixed integration of HTML_Template_IT
The class converts images, such as of the format JPEG, PNG
and GIF to a standalone SVG representation. The image is being encoded
by the PHP native encode_base64() function. You can use it to get back
a complete SVG file, which is based on a predefinded, easy adaptable
template file, or you can take the encoded file as a return value, using
the get() method. Due to the encoding by base64, the SVG files will
increase approx. 30% in size compared to the conventional image.
$package = new PEAR_PackageFileManager ();
$result = $package->setOptions (array (
'package' => 'XML_image2svg',
'summary' => 'Image to SVG conversion',
'description' => $description,
'filelistgenerator' => 'cvs',
'ignore' => array ('package.php', 'package.xml'),
'changelogoldtonew' => true ,
'baseinstalldir' => '/XML/image2svg/',
'packagedirectory' => './',
'dir_roles' => array ('tests' => 'test')
if (PEAR ::isError ($result)) {
echo $result->getMessage ();
$package->addMaintainer ('urs', 'lead', 'Urs Gehrig', 'urs@circle.ch');
$package->addDependency ('HTML_Template_IT', false , 'has', 'pkg', true );
if (isset ($_GET['make']) || (isset ($_SERVER['argv'][1 ]) && $_SERVER['argv'][1 ] == 'make')) {
$result = $package->writePackageFile ();
$result = $package->debugPackageFile ();
if (PEAR ::isError ($result)) {
echo $result->getMessage ();
Documentation generated on Mon, 11 Mar 2019 15:38:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|